Move *.ini.
This commit is contained in:
@@ -124,7 +124,7 @@ PrefsManager::~PrefsManager()
|
||||
void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame )
|
||||
{
|
||||
IniFile ini;
|
||||
ini.SetPath( "StepMania.ini" );
|
||||
ini.SetPath( "data/StepMania.ini" );
|
||||
if( !ini.ReadFile() )
|
||||
return; // could not read config file, load nothing
|
||||
|
||||
@@ -208,7 +208,7 @@ void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame )
|
||||
void PrefsManager::SaveGlobalPrefsToDisk()
|
||||
{
|
||||
IniFile ini;
|
||||
ini.SetPath( "StepMania.ini" );
|
||||
ini.SetPath( "data/StepMania.ini" );
|
||||
|
||||
ini.SetValueB( "Options", "Windowed", m_bWindowed );
|
||||
ini.SetValueI( "Options", "DisplayWidth", m_iDisplayWidth );
|
||||
@@ -295,7 +295,7 @@ void PrefsManager::ReadGamePrefsFromDisk()
|
||||
|
||||
CString sGameName = GAMESTATE->GetCurrentGameDef()->m_szName;
|
||||
IniFile ini;
|
||||
ini.SetPath( "GamePrefs.ini" );
|
||||
ini.SetPath( "data/GamePrefs.ini" );
|
||||
ini.ReadFile(); // it's OK if this fails
|
||||
|
||||
CString sAnnouncer = sGameName, sTheme = sGameName, sNoteSkin = sGameName;
|
||||
@@ -324,7 +324,7 @@ void PrefsManager::SaveGamePrefsToDisk()
|
||||
|
||||
CString sGameName = GAMESTATE->GetCurrentGameDef()->m_szName;
|
||||
IniFile ini;
|
||||
ini.SetPath( "GamePrefs.ini" );
|
||||
ini.SetPath( "data/GamePrefs.ini" );
|
||||
ini.ReadFile(); // it's OK if this fails
|
||||
|
||||
ini.SetValue( sGameName, "Announcer", ANNOUNCER->GetCurAnnouncerName() );
|
||||
|
||||
Reference in New Issue
Block a user