diff --git a/stepmania/src/GameConstantsAndTypes.cpp b/stepmania/src/GameConstantsAndTypes.cpp index 3ef20e5e13..f88f4e7f1e 100644 --- a/stepmania/src/GameConstantsAndTypes.cpp +++ b/stepmania/src/GameConstantsAndTypes.cpp @@ -197,7 +197,7 @@ XToString( TapNoteScore, NUM_TapNoteScore ); TapNoteScore StringToTapNoteScore( const RString &s ) { // new style - if ( s == "None" ) return TNS_None; + if ( s == "None" ) return TNS_None; else if( s == "HitMine" ) return TNS_HitMine; else if( s == "AvoidMine" ) return TNS_AvoidMine; else if( s == "Miss" ) return TNS_Miss; @@ -216,6 +216,10 @@ TapNoteScore StringToTapNoteScore( const RString &s ) return TNS_INVALID; } +template<> void StringTo( const RString &s, TapNoteScore &out ) +{ + out = StringToTapNoteScore( s ); +} XToLocalizedString( TapNoteScore ); LuaFunction( TapNoteScoreToLocalizedString, TapNoteScoreToLocalizedString((TapNoteScore) IArg(1)) ); static void LuaTapNoteScores( lua_State* L )