fix warnings
This commit is contained in:
@@ -908,7 +908,7 @@ bool BMSLoader::LoadFromDir( CString sDir, Song &out )
|
|||||||
|
|
||||||
// This is used a LOT, so let's just declare it here and get it
|
// This is used a LOT, so let's just declare it here and get it
|
||||||
// over with.
|
// over with.
|
||||||
unsigned commonSubstrLen = commonSubstring.GetLength();
|
unsigned commonSubstrLen = commonSubstring.size();
|
||||||
|
|
||||||
/* Create a Steps for each. */
|
/* Create a Steps for each. */
|
||||||
vector<Steps*> apSteps;
|
vector<Steps*> apSteps;
|
||||||
@@ -922,9 +922,9 @@ bool BMSLoader::LoadFromDir( CString sDir, Song &out )
|
|||||||
Steps *pSteps = apSteps[i];
|
Steps *pSteps = apSteps[i];
|
||||||
pSteps->SetDifficulty( DIFFICULTY_MEDIUM );
|
pSteps->SetDifficulty( DIFFICULTY_MEDIUM );
|
||||||
CString sTag;
|
CString sTag;
|
||||||
if( GetTagFromMap( aBMSData[i], "#title", sTag ) && sTag.GetLength() != commonSubstrLen )
|
if( GetTagFromMap( aBMSData[i], "#title", sTag ) && sTag.size() != commonSubstrLen )
|
||||||
{
|
{
|
||||||
sTag = sTag.substr( commonSubstrLen, sTag.GetLength() - commonSubstrLen );
|
sTag = sTag.substr( commonSubstrLen, sTag.size() - commonSubstrLen );
|
||||||
sTag.ToLower();
|
sTag.ToLower();
|
||||||
|
|
||||||
// XXX: Someone find me some DDR BMS examples!
|
// XXX: Someone find me some DDR BMS examples!
|
||||||
@@ -935,10 +935,10 @@ bool BMSLoader::LoadFromDir( CString sDir, Song &out )
|
|||||||
|
|
||||||
// Any of [L7] [L14] (LIGHT7) (LIGHT14) (LIGHT) [L] <LIGHT7> <L7>... you get the idea.
|
// Any of [L7] [L14] (LIGHT7) (LIGHT14) (LIGHT) [L] <LIGHT7> <L7>... you get the idea.
|
||||||
// XXX: This matches (double), but I haven't seen it used. Again, MORE EXAMPLES NEEDED
|
// XXX: This matches (double), but I haven't seen it used. Again, MORE EXAMPLES NEEDED
|
||||||
if( sTag.Find("l") != sTag.npos )
|
if( sTag.find('l') != sTag.npos )
|
||||||
pSteps->SetDifficulty( DIFFICULTY_EASY );
|
pSteps->SetDifficulty( DIFFICULTY_EASY );
|
||||||
// [A] <A> (A) [ANOTHER] <ANOTHER> (ANOTHER) (ANOTHER7) Another (DP ANOTHER) (Another) -ANOTHER- [A7] [A14] etc etc etc
|
// [A] <A> (A) [ANOTHER] <ANOTHER> (ANOTHER) (ANOTHER7) Another (DP ANOTHER) (Another) -ANOTHER- [A7] [A14] etc etc etc
|
||||||
else if( sTag.Find("a") != sTag.npos )
|
else if( sTag.find('a') != sTag.npos )
|
||||||
pSteps->SetDifficulty( DIFFICULTY_HARD );
|
pSteps->SetDifficulty( DIFFICULTY_HARD );
|
||||||
// Other tags I've seen here include (5KEYS) (10KEYS) (7keys) (14keys) (dp) [MIX] [14] (14 Keys Mix)
|
// Other tags I've seen here include (5KEYS) (10KEYS) (7keys) (14keys) (dp) [MIX] [14] (14 Keys Mix)
|
||||||
// XXX: I'm sure [MIX] means something... anyone know?
|
// XXX: I'm sure [MIX] means something... anyone know?
|
||||||
|
|||||||
Reference in New Issue
Block a user