add PlayerOptions::ResetSavedPrefs

This commit is contained in:
Glenn Maynard
2004-11-14 05:25:30 +00:00
parent 4a246546a9
commit 09b14c370e
2 changed files with 19 additions and 0 deletions
+18
View File
@@ -654,6 +654,24 @@ CString PlayerOptions::GetSavedPrefsString() const
return po_prefs.GetString();
}
void PlayerOptions::ResetSavedPrefs()
{
PlayerOptions defaults;
#define CPY(x) this->x = defaults.x;
CPY( m_fTimeSpacing );
CPY( m_fScrollSpeed );
CPY( m_fScrollBPM );
CPY( m_fScrolls[SCROLL_REVERSE] );
CPY( m_fPerspectiveTilt );
CPY( m_bTransforms[TRANSFORM_NOHOLDS] );
CPY( m_bTransforms[TRANSFORM_NOMINES] );
CPY( m_bTransforms[TRANSFORM_NOJUMPS] );
CPY( m_bTransforms[TRANSFORM_NOHANDS] );
CPY( m_bTransforms[TRANSFORM_NOQUADS] );
CPY( m_sNoteSkin );
#undef CPY
}
/*
* (c) 2001-2004 Chris Danford, Glenn Maynard
* All rights reserved.
+1
View File
@@ -17,6 +17,7 @@ struct PlayerOptions
void Approach( const PlayerOptions& other, float fDeltaSeconds );
CString GetString() const;
CString GetSavedPrefsString() const; // only the basic options that players would want for every song
void ResetSavedPrefs();
static CString ThemeMod( CString sOneMod );
CString GetThemedString() const;
void FromString( CString sOptions );