- Fixed: Do not write the config file if DoGameSetup() has not been called yet.

SVN r3653 (trunk)
This commit is contained in:
Randy Heit 2012-05-15 21:47:15 +00:00
commit d6cd9b430d
3 changed files with 14 additions and 1 deletions

View file

@ -83,7 +83,8 @@ FGameConfigFile::FGameConfigFile ()
FString user_docs, user_app_support, local_app_support;
#endif
FString pathname;
OkayToWrite = false; // Do not allow saving of the config before DoGameSetup()
bMigrating = false;
pathname = GetConfigPath (true);
ChangePathName (pathname);
@ -441,6 +442,7 @@ void FGameConfigFile::DoGameSetup (const char *gamename)
}
}
}
OkayToWrite = true;
}
void FGameConfigFile::ReadNetVars ()