add SaveStats
This commit is contained in:
@@ -3351,11 +3351,12 @@ Line13=conf,Lyrics
|
|||||||
|
|
||||||
[ScreenOtherOptions]
|
[ScreenOtherOptions]
|
||||||
Fallback=ScreenOptionsSubmenu
|
Fallback=ScreenOptionsSubmenu
|
||||||
LineNames=1,2,3
|
LineNames=1,2,3,4
|
||||||
OptionMenuFlags=together;explanations
|
OptionMenuFlags=together;explanations
|
||||||
Line1=conf,AutogenSteps
|
Line1=conf,AutogenSteps
|
||||||
Line2=conf,AutogenGroupCourses
|
Line2=conf,AutogenGroupCourses
|
||||||
Line3=conf,FastLoad
|
Line3=conf,FastLoad
|
||||||
|
Line4=conf,SaveStats
|
||||||
|
|
||||||
[ScreenSoundOptions]
|
[ScreenSoundOptions]
|
||||||
Fallback=ScreenOptionsSubmenu
|
Fallback=ScreenOptionsSubmenu
|
||||||
|
|||||||
@@ -214,6 +214,18 @@ MOVE( AutogenSteps, PREFSMAN->m_bAutogenSteps );
|
|||||||
MOVE( AutogenGroupCourses, PREFSMAN->m_bAutogenGroupCourses );
|
MOVE( AutogenGroupCourses, PREFSMAN->m_bAutogenGroupCourses );
|
||||||
MOVE( FastLoad, PREFSMAN->m_bFastLoad );
|
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 */
|
/* Background options */
|
||||||
MOVE( BackgroundMode, PREFSMAN->m_BackgroundMode );
|
MOVE( BackgroundMode, PREFSMAN->m_BackgroundMode );
|
||||||
MOVE( ShowDanger, PREFSMAN->m_bShowDanger );
|
MOVE( ShowDanger, PREFSMAN->m_bShowDanger );
|
||||||
@@ -424,6 +436,7 @@ static const ConfOption g_ConfOptions[] =
|
|||||||
ConfOption( "Autogen\nSteps", AutogenSteps, "OFF","ON" ),
|
ConfOption( "Autogen\nSteps", AutogenSteps, "OFF","ON" ),
|
||||||
ConfOption( "Autogen\nGroup Courses", AutogenGroupCourses, "OFF","ON" ),
|
ConfOption( "Autogen\nGroup Courses", AutogenGroupCourses, "OFF","ON" ),
|
||||||
ConfOption( "Fast\nLoad", FastLoad, "OFF","ON" ),
|
ConfOption( "Fast\nLoad", FastLoad, "OFF","ON" ),
|
||||||
|
ConfOption( "Save\nStats", SaveStats, "OFF", "MACHINE", "PROFILE", "BOTH" ),
|
||||||
|
|
||||||
/* Background options */
|
/* Background options */
|
||||||
ConfOption( "Background\nMode", BackgroundMode, "OFF","ANIMATIONS","VISUALIZATIONS","RANDOM MOVIES" ),
|
ConfOption( "Background\nMode", BackgroundMode, "OFF","ANIMATIONS","VISUALIZATIONS","RANDOM MOVIES" ),
|
||||||
|
|||||||
Reference in New Issue
Block a user