Add ChangeCurrentGame. Move the currently-selected game to

GamePrefs.ini.
This commit is contained in:
Glenn Maynard
2003-10-02 03:06:20 +00:00
parent 99027657e3
commit fdaac32a8f
4 changed files with 28 additions and 19 deletions
+1 -7
View File
@@ -105,15 +105,9 @@ static void GameSel( int &sel, bool ToSel, const CStringArray &choices )
if( !stricmp(choices[i], sCurGameName) )
sel = i;
} else {
SaveGamePrefsToDisk();
INPUTMAPPER->SaveMappingsToDisk(); // save mappings before switching the game
vector<Game> aGames;
GAMEMAN->GetEnabledGames( aGames );
GAMESTATE->m_CurGame = aGames[sel];
ReadGamePrefsFromDisk();
INPUTMAPPER->ReadMappingsFromDisk();
ChangeCurrentGame( aGames[sel] );
}
}