(svn r25291) -Add: WindowDesc ability to load and store information in a config file.

This commit is contained in:
frosch
2013-05-26 19:27:22 +00:00
parent 16feb5c4e9
commit b172ed3578
11 changed files with 140 additions and 3 deletions

View File

@@ -425,6 +425,7 @@ struct AfterNewGRFScan : NewGRFScanCallback {
CheckConfig();
LoadFromHighScore();
LoadHotkeysFromConfig();
WindowDesc::LoadFromConfig();
/* We have loaded the config, so we may possibly save it. */
*save_config_ptr = save_config;
@@ -852,6 +853,7 @@ int ttd_main(int argc, char *argv[])
if (save_config) {
SaveToConfig();
SaveHotkeysToConfig();
WindowDesc::SaveToConfig();
SaveToHighScore();
}