name cleanup: ProfileStatsHtml -> PlayerStatsHtml

This commit is contained in:
Chris Danford
2004-05-28 04:17:56 +00:00
parent 5a2b6aa218
commit c711c8aa33
4 changed files with 9 additions and 7 deletions
+3 -3
View File
@@ -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 );
+3 -1
View File
@@ -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;
+1 -1
View File
@@ -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 );
//
+2 -2
View File
@@ -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);
}
}