simplify
This commit is contained in:
@@ -683,12 +683,14 @@ void SongManager::InitCoursesFromDisk( LoadingWindow *ld )
|
|||||||
vsCourseDirs.push_back( COURSES_DIR );
|
vsCourseDirs.push_back( COURSES_DIR );
|
||||||
vsCourseDirs.push_back( ADDITIONAL_COURSES_DIR );
|
vsCourseDirs.push_back( ADDITIONAL_COURSES_DIR );
|
||||||
|
|
||||||
|
vector<RString> vsCourseGroupNames;
|
||||||
FOREACH_CONST( RString, vsCourseDirs, sDir )
|
FOREACH_CONST( RString, vsCourseDirs, sDir )
|
||||||
{
|
{
|
||||||
// Find all group directories in Courses dir
|
// Find all group directories in Courses dir
|
||||||
vector<RString> vsCourseGroupNames;
|
|
||||||
GetDirListing( *sDir + "*", vsCourseGroupNames, true, true );
|
GetDirListing( *sDir + "*", vsCourseGroupNames, true, true );
|
||||||
StripCvs( vsCourseGroupNames );
|
StripCvs( vsCourseGroupNames );
|
||||||
|
}
|
||||||
|
|
||||||
SortRStringArray( vsCourseGroupNames );
|
SortRStringArray( vsCourseGroupNames );
|
||||||
|
|
||||||
FOREACH_CONST( RString, vsCourseGroupNames, sCourseGroup ) // for each dir in /Courses/
|
FOREACH_CONST( RString, vsCourseGroupNames, sCourseGroup ) // for each dir in /Courses/
|
||||||
@@ -713,7 +715,6 @@ void SongManager::InitCoursesFromDisk( LoadingWindow *ld )
|
|||||||
m_pCourses.push_back( pCourse );
|
m_pCourses.push_back( pCourse );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
RefreshCourseGroupInfo();
|
RefreshCourseGroupInfo();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user