Override game prefs with static.ini, too.
This commit is contained in:
@@ -644,6 +644,7 @@ static void RestoreAppPri()
|
||||
|
||||
|
||||
#define GAMEPREFS_INI_PATH BASE_PATH "Data" SLASH "GamePrefs.ini"
|
||||
#define STATIC_INI_PATH BASE_PATH "Data" SLASH "Static.ini"
|
||||
|
||||
void ChangeCurrentGame( Game g )
|
||||
{
|
||||
@@ -669,6 +670,9 @@ void ReadGamePrefsFromDisk( bool bSwitchToLastPlayedGame )
|
||||
ini.SetPath( GAMEPREFS_INI_PATH );
|
||||
ini.ReadFile(); // it's OK if this fails
|
||||
|
||||
ini.SetPath( STATIC_INI_PATH );
|
||||
ini.ReadFile(); // it's OK if this fails, too
|
||||
|
||||
CString sAnnouncer = sGameName, sTheme = sGameName, sNoteSkin = sGameName;
|
||||
|
||||
// if these calls fail, the three strings will keep the initial values set above.
|
||||
|
||||
Reference in New Issue
Block a user