From 10c5ca4759e06027023926f590c93bed7882756e Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 31 Jul 2004 23:58:53 +0000 Subject: [PATCH] add ability to reset to the default fail mode in metrics --- stepmania/src/SongOptions.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/stepmania/src/SongOptions.cpp b/stepmania/src/SongOptions.cpp index a136612208..87c25add44 100644 --- a/stepmania/src/SongOptions.cpp +++ b/stepmania/src/SongOptions.cpp @@ -1,6 +1,7 @@ #include "global.h" #include "SongOptions.h" #include "RageUtil.h" +#include "PrefsManager.h" void SongOptions::Init() { @@ -110,6 +111,15 @@ void SongOptions::FromString( CString sOptions ) else if( sBit == "fail30misses" ) m_FailType = FAIL_COMBO_OF_30_MISSES; else if( sBit == "failendofsong" ) m_FailType = FAIL_END_OF_SONG; else if( sBit == "failoff" ) m_FailType = FAIL_OFF; + + else if( sBit == "faildefault" ) + { + SongOptions so; + // TODO: Fix this so that SongOptions don't depend on PrefsManager + so.FromString( PREFSMAN->m_sDefaultModifiers ); + m_FailType = so.m_FailType; + } + else if( sBit == "assisttick" ) m_bAssistTick = on; else if( sBit == "autosync" ) m_bAutoSync = on; else if( sBit == "savescore" ) m_bSaveScore = on;