BackwardCompatible -> DwiCompatible for clarity
This commit is contained in:
@@ -15,6 +15,7 @@ static const char *DifficultyNames[] = {
|
||||
"Edit",
|
||||
};
|
||||
XToString( Difficulty );
|
||||
StringToX( Difficulty );
|
||||
LuaXType( Difficulty );
|
||||
|
||||
static const char *DifficultyDisplayTypeNames[] = {
|
||||
@@ -42,7 +43,7 @@ LuaFunction( DifficultyDisplayTypeToLocalizedString, DifficultyDisplayTypeToLoca
|
||||
/* TODO: Format specific hacks should be moved into the file loader for
|
||||
* that format. We don't want to carry these hacks forward to file
|
||||
* formats that don't need them. */
|
||||
Difficulty BackwardCompatibleStringToDifficulty( const RString& sDC )
|
||||
Difficulty DwiCompatibleStringToDifficulty( const RString& sDC )
|
||||
{
|
||||
RString s2 = sDC;
|
||||
s2.MakeLower();
|
||||
|
||||
@@ -22,7 +22,7 @@ const RString& DifficultyToString( Difficulty dc );
|
||||
Difficulty StringToDifficulty( const RString& sDC );
|
||||
LuaDeclareType( Difficulty );
|
||||
|
||||
Difficulty BackwardCompatibleStringToDifficulty( const RString& sDC );
|
||||
Difficulty DwiCompatibleStringToDifficulty( const RString& sDC );
|
||||
|
||||
typedef Difficulty CourseDifficulty;
|
||||
const int NUM_CourseDifficulty = NUM_Difficulty;
|
||||
|
||||
@@ -173,7 +173,7 @@ static bool LoadFromDWITokens(
|
||||
int iNumFeet = atoi(sNumFeet);
|
||||
// out.SetDescription(sDescription); // Don't put garbage in the description.
|
||||
out.SetMeter(iNumFeet);
|
||||
out.SetDifficulty( BackwardCompatibleStringToDifficulty(sDescription) );
|
||||
out.SetDifficulty( DwiCompatibleStringToDifficulty(sDescription) );
|
||||
|
||||
NoteData newNoteData;
|
||||
newNoteData.SetNumTracks( g_mapDanceNoteToNoteDataColumn.size() );
|
||||
|
||||
@@ -34,7 +34,7 @@ static void LoadFromSMTokens(
|
||||
|
||||
out.m_StepsType = GameManager::StringToStepsType( sStepsType );
|
||||
out.SetDescription( sDescription );
|
||||
out.SetDifficulty( BackwardCompatibleStringToDifficulty(sDifficulty) );
|
||||
out.SetDifficulty( DwiCompatibleStringToDifficulty(sDifficulty) );
|
||||
|
||||
// HACK: We used to store SMANIAC as Difficulty_Hard with special description.
|
||||
// Now, it has its own Difficulty_Challenge
|
||||
|
||||
@@ -59,7 +59,7 @@ void TrailID::LoadFromNode( const XNode* pNode )
|
||||
st = GameManager::StringToStepsType( sTemp );
|
||||
|
||||
pNode->GetAttrValue( "CourseDifficulty", sTemp );
|
||||
cd = BackwardCompatibleStringToDifficulty( sTemp );
|
||||
cd = StringToDifficulty( sTemp );
|
||||
m_Cache.Unset();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user