Override prefs with static.ini

This commit is contained in:
Glenn Maynard
2003-10-08 07:28:11 +00:00
parent 19a16e6713
commit 8475d5fbd5
+5
View File
@@ -20,6 +20,7 @@
#include "RageSoundReader_Resample.h" /* for ResampleQuality */
#define STEPMANIA_INI_PATH BASE_PATH "Data" SLASH "StepMania.ini"
#define STATIC_INI_PATH BASE_PATH "Data" SLASH "Static.ini"
PrefsManager* PREFSMAN = NULL; // global and accessable from anywhere in our program
@@ -295,6 +296,10 @@ void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame, CStrin
void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame )
{
ReadGlobalPrefsFromDisk( bSwitchToLastPlayedGame, STEPMANIA_INI_PATH );
/* Load this on top of the regular INI; if it exists, any settings listed
* in it will override user settings. */
ReadGlobalPrefsFromDisk( bSwitchToLastPlayedGame, STATIC_INI_PATH );
}
void PrefsManager::SaveGlobalPrefsToDisk() const