diff --git a/stepmania/src/PrefsManager.cpp b/stepmania/src/PrefsManager.cpp index cca55facb0..7ec7ae3451 100644 --- a/stepmania/src/PrefsManager.cpp +++ b/stepmania/src/PrefsManager.cpp @@ -236,7 +236,7 @@ void PrefsManager::Init() m_bWriteMachineStatsHtml = false; /* Most people use local profiles, so writing profile stats is redundant. */ - m_bWriteProfileStatsHtml = false; + m_bWritePlayerStatsHtml = false; m_bEditorShowBGChangesPlay = false; @@ -541,7 +541,7 @@ void PrefsManager::ReadPrefsFromFile( CString sIni ) ini.GetValue( "Options", "AutoRestart", g_bAutoRestart ); ini.GetValue( "Options", "SignProfileData", m_bSignProfileData ); ini.GetValue( "Options", "WriteMachineStatsHtml", m_bWriteMachineStatsHtml ); - ini.GetValue( "Options", "WriteProfileStatsHtml", m_bWriteProfileStatsHtml ); + ini.GetValue( "Options", "WriteProfileStatsHtml", m_bWritePlayerStatsHtml ); ini.GetValue( "Editor", "ShowBGChangesPlay", m_bEditorShowBGChangesPlay ); @@ -768,7 +768,7 @@ void PrefsManager::SaveGlobalPrefsToDisk() const ini.SetValue( "Options", "AutoRestart", g_bAutoRestart ); ini.SetValue( "Options", "SignProfileData", m_bSignProfileData ); ini.SetValue( "Options", "WriteMachineStatsHtml", m_bWriteMachineStatsHtml ); - ini.SetValue( "Options", "WriteProfileStatsHtml", m_bWriteProfileStatsHtml ); + ini.SetValue( "Options", "WriteProfileStatsHtml", m_bWritePlayerStatsHtml ); ini.SetValue( "Options", "SoundWriteAhead", m_iSoundWriteAhead ); diff --git a/stepmania/src/PrefsManager.h b/stepmania/src/PrefsManager.h index 5fec230034..61c3c540da 100644 --- a/stepmania/src/PrefsManager.h +++ b/stepmania/src/PrefsManager.h @@ -214,7 +214,9 @@ public: // you want to use a profile on different machines that don't // have the same key, or else the profile's data will be discarded. bool m_bSignProfileData; - bool m_bWriteMachineStatsHtml, m_bWriteProfileStatsHtml; + + bool m_bWriteMachineStatsHtml; + bool m_bWritePlayerStatsHtml; /* Editor prefs: */ bool m_bEditorShowBGChangesPlay; diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index 3f266cd5a2..b2b6f59d09 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -696,7 +696,7 @@ bool Profile::SaveAllToDir( CString sDir, bool bSignData ) const const bool bThisIsMachineProfile = (this == PROFILEMAN->GetMachineProfile()); // XXX if( (bThisIsMachineProfile && PREFSMAN->m_bWriteMachineStatsHtml) || - (!bThisIsMachineProfile && PREFSMAN->m_bWriteProfileStatsHtml) ) + (!bThisIsMachineProfile && PREFSMAN->m_bWritePlayerStatsHtml) ) SaveStatsWebPageToDir( sDir ); // diff --git a/stepmania/src/ScreenOptionsMasterPrefs.cpp b/stepmania/src/ScreenOptionsMasterPrefs.cpp index f6fb8d1d57..290a0dc28b 100644 --- a/stepmania/src/ScreenOptionsMasterPrefs.cpp +++ b/stepmania/src/ScreenOptionsMasterPrefs.cpp @@ -219,10 +219,10 @@ static void SaveStats( int &sel, bool ToSel, const CStringArray &choices ) if( ToSel ) { sel = (PREFSMAN->m_bWriteMachineStatsHtml)? 1:0; - sel |= (PREFSMAN->m_bWriteProfileStatsHtml)? 2:0; + sel |= (PREFSMAN->m_bWritePlayerStatsHtml)? 2:0; } else { PREFSMAN->m_bWriteMachineStatsHtml = !!(sel&1); - PREFSMAN->m_bWriteProfileStatsHtml = !!(sel&2); + PREFSMAN->m_bWritePlayerStatsHtml = !!(sel&2); } }