Fixed some ugliness in Extra Stage
This commit is contained in:
1 parent
36ef379d37
commit
3bcab1d53f
7 files changed
+30
-18
No files matched your search
@@ -483,16 +483,15 @@ void SongManager::InitCoursesFromDisk()
|
||||
for( g=0; g<saGroupNames.GetSize(); g++ ) // foreach Group
|
||||
{
|
||||
CString sGroupName = saGroupNames[g];
|
||||
CStringArray saCourseFiles;
|
||||
GetDirListing( "Songs\\" + sGroupName + "\\*.crs", saCourseFiles );
|
||||
for( int i=0; i<saCourseFiles.GetSize(); i++ )
|
||||
CStringArray saCoursePaths;
|
||||
GetDirListing( "Songs\\" + sGroupName + "\\*.crs", saCoursePaths, false, true );
|
||||
for( int i=0; i<saCoursePaths.GetSize(); i++ )
|
||||
{
|
||||
Course course;
|
||||
course.LoadFromCRSFile( "Songs\\" + sGroupName + "\\" + saCourseFiles[i], m_pSongs );
|
||||
course.LoadFromCRSFile( saCoursePaths[i], m_pSongs );
|
||||
if( course.m_iStages > 0 )
|
||||
m_aExtraCourses.Add( course );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user