diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index 8308722987..f5e1255ad7 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -308,15 +308,8 @@ void Course::AutogenEndlessFromGroup( CString sGroupName, vector &apSongs m_bRandomize = true; m_iLives = -1; - CStringArray asPossibleBannerPaths; - GetDirListing( "Songs/" + sGroupName + "/banner.png", asPossibleBannerPaths, false, true ); - GetDirListing( "Songs/" + sGroupName + "/banner.jpg", asPossibleBannerPaths, false, true ); - GetDirListing( "Songs/" + sGroupName + "/banner.gif", asPossibleBannerPaths, false, true ); - GetDirListing( "Songs/" + sGroupName + "/banner.bmp", asPossibleBannerPaths, false, true ); - if( !asPossibleBannerPaths.empty() ) - m_sBannerPath = asPossibleBannerPaths[0]; - m_sName = SONGMAN->ShortenGroupName( sGroupName ); + m_sBannerPath = SONGMAN->GetGroupBannerPath( sGroupName ); // We want multiple songs, so we can try to prevent repeats during // gameplay. (We might still get a repeat at the repeat boundary,