remove html saving options (because the html writer is gone)

This commit is contained in:
Chris Danford
2004-07-11 02:24:32 +00:00
parent c301e1eb83
commit 059dfb6ae2
6 changed files with 2 additions and 33 deletions
+1 -1
View File
@@ -3497,7 +3497,6 @@ OptionMenuFlags=together;explanations
Line1=conf,AutogenSteps
Line2=conf,AutogenGroupCourses
Line3=conf,FastLoad
Line4=conf,SaveStats
[ScreenSoundOptions]
Fallback=ScreenOptionsSubmenu
@@ -4082,6 +4081,7 @@ NextScreen=ScreenBranchGameplay
TimerSeconds=30
StyleIcon=0
MemoryCardIcons=0
CapitalizeAllOptionNames=1
LineNames=1,2,3,4,5
OptionMenuFlags=
-10
View File
@@ -227,12 +227,6 @@ void PrefsManager::Init()
g_bAutoRestart = false;
m_bSignProfileData = false;
/* Write machine stats takes too long for many people; disable it by default. */
m_bWriteMachineStatsHtml = false;
/* Most people use local profiles, so writing profile stats is redundant. */
m_bWritePlayerStatsHtml = false;
m_bEditorShowBGChangesPlay = false;
/* XXX: Set these defaults for individual consoles using VideoCardDefaults.ini. */
@@ -543,8 +537,6 @@ void PrefsManager::ReadPrefsFromFile( CString sIni )
ini.GetValue( "Options", "AnisotropicFiltering", m_bAnisotropicFiltering );
ini.GetValue( "Options", "AutoRestart", g_bAutoRestart );
ini.GetValue( "Options", "SignProfileData", m_bSignProfileData );
ini.GetValue( "Options", "WriteMachineStatsHtml", m_bWriteMachineStatsHtml );
ini.GetValue( "Options", "WritePlayerStatsHtml", m_bWritePlayerStatsHtml );
ini.GetValue( "Editor", "ShowBGChangesPlay", m_bEditorShowBGChangesPlay );
@@ -776,8 +768,6 @@ void PrefsManager::SaveGlobalPrefsToDisk() const
ini.SetValue( "Options", "AnisotropicFiltering", m_bAnisotropicFiltering );
ini.SetValue( "Options", "AutoRestart", g_bAutoRestart );
ini.SetValue( "Options", "SignProfileData", m_bSignProfileData );
ini.SetValue( "Options", "WriteMachineStatsHtml", m_bWriteMachineStatsHtml );
ini.SetValue( "Options", "WritePlayerStatsHtml", m_bWritePlayerStatsHtml );
ini.SetValue( "Options", "SoundWriteAhead", m_iSoundWriteAhead );
-3
View File
@@ -218,9 +218,6 @@ public:
// have the same key, or else the profile's data will be discarded.
bool m_bSignProfileData;
bool m_bWriteMachineStatsHtml;
bool m_bWritePlayerStatsHtml;
/* Editor prefs: */
bool m_bEditorShowBGChangesPlay;
+1 -3
View File
@@ -701,9 +701,7 @@ bool Profile::SaveAllToDir( CString sDir, bool bSignData ) const
}
}
if( (IsMachine() && PREFSMAN->m_bWriteMachineStatsHtml) ||
(!IsMachine() && PREFSMAN->m_bWritePlayerStatsHtml) )
SaveStatsWebPageToDir( sDir );
SaveStatsWebPageToDir( sDir );
//
// create edits dir
@@ -18,12 +18,9 @@ static void SaveMachineStatsToFirstMemCard()
CString sDir = MEM_CARD_MOUNT_POINT[pn];
sDir += "MachineProfile/";
bool bOldVal = PREFSMAN->m_bWriteMachineStatsHtml;
PREFSMAN->m_bWriteMachineStatsHtml = true;
PROFILEMAN->GetMachineProfile()->SaveAllToDir( sDir, PREFSMAN->m_bSignProfileData );
PREFSMAN->m_bWriteMachineStatsHtml = bOldVal;
SCREENMAN->SystemMessage( ssprintf("Machine stats saved to P%d card.",pn+1) );
return;
}
@@ -213,18 +213,6 @@ MOVE( AutogenSteps, PREFSMAN->m_bAutogenSteps );
MOVE( AutogenGroupCourses, PREFSMAN->m_bAutogenGroupCourses );
MOVE( FastLoad, PREFSMAN->m_bFastLoad );
static void SaveStats( int &sel, bool ToSel, const CStringArray &choices )
{
if( ToSel )
{
sel = (PREFSMAN->m_bWriteMachineStatsHtml)? 1:0;
sel |= (PREFSMAN->m_bWritePlayerStatsHtml)? 2:0;
} else {
PREFSMAN->m_bWriteMachineStatsHtml = !!(sel&1);
PREFSMAN->m_bWritePlayerStatsHtml = !!(sel&2);
}
}
/* Background options */
MOVE( BackgroundMode, PREFSMAN->m_BackgroundMode );
MOVE( ShowDanger, PREFSMAN->m_bShowDanger );
@@ -432,7 +420,6 @@ static const ConfOption g_ConfOptions[] =
ConfOption( "Autogen\nSteps", AutogenSteps, "OFF","ON" ),
ConfOption( "Autogen\nGroup Courses", AutogenGroupCourses, "OFF","ON" ),
ConfOption( "Fast\nLoad", FastLoad, "OFF","ON" ),
ConfOption( "Save\nStats", SaveStats, "OFF", "MACHINE", "PROFILE", "BOTH" ),
/* Background options */
ConfOption( "Background\nMode", BackgroundMode, "OFF","ANIMATIONS","VISUALIZATIONS","RANDOM MOVIES" ),