simplify
This commit is contained in:
@@ -889,9 +889,10 @@ bool BMSLoader::LoadFromDir( CString sDir, Song &out )
|
|||||||
{
|
{
|
||||||
for( unsigned i=0; i < aBMSData.size(); i++ )
|
for( unsigned i=0; i < aBMSData.size(); i++ )
|
||||||
{
|
{
|
||||||
CString sTitle; // Declare here for less memory thrashing
|
CString sTitle;
|
||||||
if( GetTagFromMap( aBMSData[i], "#title", sTitle ) )
|
if( !GetTagFromMap( aBMSData[i], "#title", sTitle ) )
|
||||||
{
|
continue;
|
||||||
|
|
||||||
commonSubstring = FindLargestCommonSubstring( commonSubstring, sTitle );
|
commonSubstring = FindLargestCommonSubstring( commonSubstring, sTitle );
|
||||||
if( commonSubstring == "" )
|
if( commonSubstring == "" )
|
||||||
{
|
{
|
||||||
@@ -901,8 +902,6 @@ bool BMSLoader::LoadFromDir( CString sDir, Song &out )
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// else no comparison, this file is missing a #title tag.
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Yay, we have our substring. (something like "LION SUKI")
|
// Yay, we have our substring. (something like "LION SUKI")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user