move DwiCompatibleStringToDifficulty from Difficulty to NotesLoaderDWI; make .sm and .sm-derived formats use DifficultyToString since NotesWriterSM/SMA/SSC should be writing normalized strings

This commit is contained in:
AJ Kelly
2011-05-15 03:18:34 -05:00
parent 728a317a90
commit 8f70dcf99b
6 changed files with 32 additions and 35 deletions
+2 -2
View File
@@ -709,7 +709,7 @@ bool SSCLoader::LoadFromSSCFile( const RString &sPath, Song &out, bool bFromCach
else if( sValueName=="DIFFICULTY" )
{
pNewNotes->SetDifficulty( DwiCompatibleStringToDifficulty( sParams[1] ) );
pNewNotes->SetDifficulty( StringToDifficulty( sParams[1] ) );
}
else if( sValueName=="METER" )
@@ -980,7 +980,7 @@ bool SSCLoader::LoadEditFromMsd( const MsdFile &msd, const RString &sEditFilePat
else if( sValueName=="DIFFICULTY" )
{
pNewNotes->SetDifficulty( DwiCompatibleStringToDifficulty( sParams[1] ) );
pNewNotes->SetDifficulty( StringToDifficulty( sParams[1] ) );
bSSCFormat = true;
}