Split off separate DemonstrationSound pref

This commit is contained in:
Chris Danford
2003-10-22 11:40:04 +00:00
parent 5635d934aa
commit 513f9709ca
5 changed files with 19 additions and 8 deletions
+3
View File
@@ -147,6 +147,7 @@ PrefsManager::PrefsManager()
m_fCenterImageScaleY = 1;
m_bAttractSound = true;
m_bDemonstrationSound = true;
m_bAllowExtraStage = true;
g_bAutoRestart = false;
@@ -315,6 +316,7 @@ void PrefsManager::ReadGlobalPrefsFromDisk()
ini.GetValue( "Options", "CenterImageScaleX", m_fCenterImageScaleX );
ini.GetValue( "Options", "CenterImageScaleY", m_fCenterImageScaleY );
ini.GetValue( "Options", "AttractSound", m_bAttractSound );
ini.GetValue( "Options", "DemonstrationSound", m_bDemonstrationSound );
ini.GetValue( "Options", "AllowExtraStage", m_bAllowExtraStage );
ini.GetValue( "Options", "AutoRestart", g_bAutoRestart );
@@ -445,6 +447,7 @@ void PrefsManager::SaveGlobalPrefsToDisk() const
ini.SetValue( "Options", "CenterImageScaleX", m_fCenterImageScaleX );
ini.SetValue( "Options", "CenterImageScaleY", m_fCenterImageScaleY );
ini.SetValue( "Options", "AttractSound", m_bAttractSound );
ini.SetValue( "Options", "DemonstrationSound", m_bDemonstrationSound );
ini.SetValue( "Options", "AllowExtraStage", m_bAllowExtraStage );
ini.SetValue( "Options", "AutoRestart", g_bAutoRestart );