diff --git a/stepmania/Themes/default/metrics.ini b/stepmania/Themes/default/metrics.ini index 682eb0ce6f..8f2df21026 100644 --- a/stepmania/Themes/default/metrics.ini +++ b/stepmania/Themes/default/metrics.ini @@ -3351,11 +3351,12 @@ Line13=conf,Lyrics [ScreenOtherOptions] Fallback=ScreenOptionsSubmenu -LineNames=1,2,3 +LineNames=1,2,3,4 OptionMenuFlags=together;explanations Line1=conf,AutogenSteps Line2=conf,AutogenGroupCourses Line3=conf,FastLoad +Line4=conf,SaveStats [ScreenSoundOptions] Fallback=ScreenOptionsSubmenu diff --git a/stepmania/src/ScreenOptionsMasterPrefs.cpp b/stepmania/src/ScreenOptionsMasterPrefs.cpp index c15fc48e4a..f6fb8d1d57 100644 --- a/stepmania/src/ScreenOptionsMasterPrefs.cpp +++ b/stepmania/src/ScreenOptionsMasterPrefs.cpp @@ -214,6 +214,18 @@ 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_bWriteProfileStatsHtml)? 2:0; + } else { + PREFSMAN->m_bWriteMachineStatsHtml = !!(sel&1); + PREFSMAN->m_bWriteProfileStatsHtml = !!(sel&2); + } +} + /* Background options */ MOVE( BackgroundMode, PREFSMAN->m_BackgroundMode ); MOVE( ShowDanger, PREFSMAN->m_bShowDanger ); @@ -424,6 +436,7 @@ 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" ),