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
-10
View File
@@ -14,7 +14,6 @@
#include "PrefsManager.h"
#include "IniFile.h"
#include "GameState.h"
#include "RageException.h"
#include "RageDisplay.h"
#include "RageUtil.h"
#include "arch/arch.h" /* for default driver specs */
@@ -288,13 +287,6 @@ void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame )
CString sAdditionalSongFolders;
ini.GetValue( "Options", "AdditionalSongFolders", sAdditionalSongFolders );
split( sAdditionalSongFolders, ",", m_asAdditionalSongFolders, true );
if( bSwitchToLastPlayedGame )
{
Game game;
if( ini.GetValue("Options", "Game", (int&)game) )
GAMESTATE->m_CurGame = game;
}
}
@@ -419,7 +411,5 @@ void PrefsManager::SaveGlobalPrefsToDisk()
ini.SetValue ( "Options", "AdditionalSongFolders", join(",", m_asAdditionalSongFolders) );
ini.SetValue( "Options", "Game", GAMESTATE->m_CurGame );
ini.WriteFile();
}