diff --git a/stepmania/src/CommonMetrics.cpp b/stepmania/src/CommonMetrics.cpp index 9c4fdc4050..e9441d27fe 100644 --- a/stepmania/src/CommonMetrics.cpp +++ b/stepmania/src/CommonMetrics.cpp @@ -45,7 +45,7 @@ void ThemeMetricDifficultiesToShow::Read() FOREACH_CONST( RString, v, i ) { - Difficulty d = BackwardCompatibleStringToDifficulty( *i ); + Difficulty d = StringToDifficulty( *i ); if( d == Difficulty_Invalid ) RageException::Throw( "Unknown difficulty \"%s\" in CourseDifficultiesToShow.", i->c_str() ); m_v.push_back( d ); @@ -75,7 +75,7 @@ void ThemeMetricCourseDifficultiesToShow::Read() FOREACH_CONST( RString, v, i ) { - CourseDifficulty d = BackwardCompatibleStringToDifficulty( *i ); + CourseDifficulty d = StringToDifficulty( *i ); if( d == Difficulty_Invalid ) RageException::Throw( "Unknown CourseDifficulty \"%s\" in CourseDifficultiesToShow.", i->c_str() ); m_v.push_back( d ); diff --git a/stepmania/src/CourseLoaderCRS.cpp b/stepmania/src/CourseLoaderCRS.cpp index 96cccff431..eab372cfa8 100644 --- a/stepmania/src/CourseLoaderCRS.cpp +++ b/stepmania/src/CourseLoaderCRS.cpp @@ -217,7 +217,7 @@ bool CourseLoaderCRS::LoadFromMsd( const RString &sPath, const MsdFile &msd, Cou } } - new_entry.stepsCriteria.m_difficulty = BackwardCompatibleStringToDifficulty( sParams[2] ); + new_entry.stepsCriteria.m_difficulty = StringToDifficulty( sParams[2] ); if( new_entry.stepsCriteria.m_difficulty == Difficulty_Invalid ) { int retval = sscanf( sParams[2], "%d..%d", &new_entry.stepsCriteria.m_iLowMeter, &new_entry.stepsCriteria.m_iHighMeter ); diff --git a/stepmania/src/GameCommand.cpp b/stepmania/src/GameCommand.cpp index ba245fd7c8..be299eb47f 100644 --- a/stepmania/src/GameCommand.cpp +++ b/stepmania/src/GameCommand.cpp @@ -192,7 +192,7 @@ void GameCommand::LoadOne( const Command& cmd ) else if( sName == "difficulty" ) { - Difficulty dc = BackwardCompatibleStringToDifficulty( sValue ); + Difficulty dc = StringToDifficulty( sValue ); if( dc != Difficulty_Invalid ) m_dc = dc; else @@ -261,7 +261,7 @@ void GameCommand::LoadOne( const Command& cmd ) if( pSong == NULL || pStyle == NULL ) RageException::Throw( "Must set Song and Style to set Steps." ); - Difficulty dc = BackwardCompatibleStringToDifficulty( sSteps ); + Difficulty dc = StringToDifficulty( sSteps ); if( dc != Difficulty_Edit ) m_pSteps = SongUtil::GetStepsByDifficulty( pSong, pStyle->m_StepsType, dc ); else @@ -296,7 +296,7 @@ void GameCommand::LoadOne( const Command& cmd ) if( pCourse == NULL || pStyle == NULL ) RageException::Throw( "Must set Course and Style to set Steps." ); - const CourseDifficulty cd = BackwardCompatibleStringToDifficulty( sTrail ); + const CourseDifficulty cd = StringToDifficulty( sTrail ); ASSERT_M( cd != Difficulty_Invalid, ssprintf("Invalid difficulty '%s'", sTrail.c_str()) ); m_pTrail = pCourse->GetTrail( pStyle->m_StepsType, cd ); diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index cebe5b6f59..5990679ce5 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -1235,8 +1235,8 @@ void Profile::LoadGeneralDataFromNode( const XNode* pNode ) pNode->GetChildValue( "WeightPounds", m_iWeightPounds ); pNode->GetChildValue( "Guid", m_sGuid ); pNode->GetChildValue( "SortOrder", s ); m_SortOrder = StringToSortOrder( s ); - pNode->GetChildValue( "LastDifficulty", s ); m_LastDifficulty = BackwardCompatibleStringToDifficulty( s ); - pNode->GetChildValue( "LastCourseDifficulty", s ); m_LastCourseDifficulty = BackwardCompatibleStringToDifficulty( s ); + pNode->GetChildValue( "LastDifficulty", s ); m_LastDifficulty = StringToDifficulty( s ); + pNode->GetChildValue( "LastCourseDifficulty", s ); m_LastCourseDifficulty = StringToDifficulty( s ); pNode->GetChildValue( "LastStepsType", s ); m_LastStepsType = GameManager::StringToStepsType( s ); pTemp = pNode->GetChild( "Song" ); if( pTemp ) m_lastSong.LoadFromNode( pTemp ); pTemp = pNode->GetChild( "Course" ); if( pTemp ) m_lastCourse.LoadFromNode( pTemp ); diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index ecfe0e65c3..547c1a6bff 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -1277,7 +1277,7 @@ void ScreenGameplay::LoadLights() Difficulty d1 = Difficulty_Invalid; if( asDifficulties.size() > 0 ) - d1 = BackwardCompatibleStringToDifficulty( asDifficulties[0] ); + d1 = StringToDifficulty( asDifficulties[0] ); pSteps = SongUtil::GetClosestNotes( GAMESTATE->m_pCurSong, st, d1 ); // If we can't find anything at all, stop. @@ -1289,7 +1289,7 @@ void ScreenGameplay::LoadLights() if( asDifficulties.size() > 1 ) { - Difficulty d2 = BackwardCompatibleStringToDifficulty( asDifficulties[1] ); + Difficulty d2 = StringToDifficulty( asDifficulties[1] ); const Steps *pSteps2 = SongUtil::GetClosestNotes( GAMESTATE->m_pCurSong, st, d2 ); if( pSteps != NULL && pSteps2 != NULL && pSteps != pSteps2 ) { diff --git a/stepmania/src/Steps.cpp b/stepmania/src/Steps.cpp index 0456c26c43..a0510169f6 100644 --- a/stepmania/src/Steps.cpp +++ b/stepmania/src/Steps.cpp @@ -152,7 +152,7 @@ void Steps::TidyUpData() m_StepsType = STEPS_TYPE_DANCE_SINGLE; if( GetDifficulty() == Difficulty_Invalid ) - SetDifficulty( BackwardCompatibleStringToDifficulty(GetDescription()) ); + SetDifficulty( StringToDifficulty(GetDescription()) ); if( GetDifficulty() == Difficulty_Invalid ) { diff --git a/stepmania/src/StepsUtil.cpp b/stepmania/src/StepsUtil.cpp index 0daf5b1804..13b99f2365 100644 --- a/stepmania/src/StepsUtil.cpp +++ b/stepmania/src/StepsUtil.cpp @@ -301,7 +301,7 @@ void StepsID::LoadFromNode( const XNode* pNode ) st = GameManager::StringToStepsType( sTemp ); pNode->GetAttrValue( "Difficulty", sTemp ); - dc = BackwardCompatibleStringToDifficulty( sTemp ); + dc = StringToDifficulty( sTemp ); if( dc == Difficulty_Edit ) { diff --git a/stepmania/src/UnlockManager.cpp b/stepmania/src/UnlockManager.cpp index 5595d4dbbc..ca0c664bcd 100644 --- a/stepmania/src/UnlockManager.cpp +++ b/stepmania/src/UnlockManager.cpp @@ -491,7 +491,7 @@ void UnlockManager::Load() break; } - e->m_dc = BackwardCompatibleStringToDifficulty( e->m_cmd.GetArg(1).s ); + e->m_dc = StringToDifficulty( e->m_cmd.GetArg(1).s ); if( e->m_dc == Difficulty_Invalid ) { LOG->Warn( "Unlock: Invalid difficulty \"%s\"", e->m_cmd.GetArg(1).s.c_str() );