General cleanup.
This commit is contained in:
@@ -296,13 +296,14 @@ void KSFLoader::LoadTags( const RString &str, Song &out )
|
|||||||
vector<RString> asBits;
|
vector<RString> asBits;
|
||||||
split( str, " - ", asBits, false );
|
split( str, " - ", asBits, false );
|
||||||
/* Ignore the difficulty, since we get that elsewhere. */
|
/* Ignore the difficulty, since we get that elsewhere. */
|
||||||
if( asBits.size() == 3 &&
|
if( asBits.size() == 3 && (
|
||||||
(!stricmp(asBits[2], "double") ||
|
!stricmp(asBits[2], "double") ||
|
||||||
!stricmp(asBits[2], "easy") ||
|
!stricmp(asBits[2], "easy") ||
|
||||||
!stricmp(asBits[2], "normal") ||
|
!stricmp(asBits[2], "normal") ||
|
||||||
!stricmp(asBits[2], "hard") ||
|
!stricmp(asBits[2], "hard") ||
|
||||||
!stricmp(asBits[2], "crazy") ||
|
!stricmp(asBits[2], "crazy") ||
|
||||||
!stricmp(asBits[2], "nightmare")) )
|
!stricmp(asBits[2], "nightmare"))
|
||||||
|
)
|
||||||
{
|
{
|
||||||
asBits.erase( asBits.begin()+2, asBits.begin()+3 );
|
asBits.erase( asBits.begin()+2, asBits.begin()+3 );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user