Jeck - Fix for set loading / unloading.

* This is a little dirty, as it's loading the profile multiple times. The proper way to do it would be to add any line starting with "unlocked_" to an array for deferred loading. This would also allow us to write those lines back even without the associated set being loaded. The clean solution is on my todo-list now :)
This commit is contained in:
wagic.jeck
2009-09-23 20:36:10 +00:00
parent db8247ddd7
commit b4d261de2f
3 changed files with 8 additions and 9 deletions

View File

@@ -72,7 +72,7 @@ void GameApp::Create()
//Link this to our settings manager.
options.theGame = this;
//Ensure that options are properly loaded before loading files.
//Ensure that options are partially loaded before loading files.
options.reloadProfile();
//Test for Music files presence
@@ -184,6 +184,9 @@ void GameApp::LoadGameStates()
void GameApp::Destroy()
{
LOG("==Destroying GameApp==");
//Save game options before we destroy everything.
options.save();
for (int i=GAME_STATE_MENU;i<=MAX_STATE-1;i++)
{
if (mGameStates[i]){