This commit is contained in:
Glenn Maynard
2004-09-17 04:07:33 +00:00
parent 00b2d18a8e
commit 5823cd06a1
+4 -2
View File
@@ -212,10 +212,10 @@ void SongManager::LoadStepManiaSongDir( CString sDir, LoadingWindow *ld )
GetDirListing( sDir+sGroupDirName + "/*", arraySongDirs, true, true );
SortCStringArray( arraySongDirs );
unsigned j;
LOG->Trace("Attempting to load %i songs from \"%s\"", arraySongDirs.size(), (sDir+sGroupDirName).c_str() );
int loaded = 0;
for( j=0; j< arraySongDirs.size(); j++ ) // for each song dir
for( unsigned j=0; j< arraySongDirs.size(); j++ ) // for each song dir
{
CString sSongDirName = arraySongDirs[j];
@@ -240,6 +240,8 @@ void SongManager::LoadStepManiaSongDir( CString sDir, LoadingWindow *ld )
loaded++;
}
LOG->Trace("Loaded %i songs from \"%s\"", loaded, (sDir+sGroupDirName).c_str() );
/* Don't add the group name if we didn't load any songs in this group. */
if(!loaded) continue;