From 8d86f6bf6a6c931a84c01e21f474241d56f11bb3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 22 Apr 2003 20:31:12 +0000 Subject: [PATCH] fix banners for courses not directly under Courses --- stepmania/src/Course.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index 9d1ef7a177..826dec49d4 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -113,12 +113,13 @@ void Course::LoadFromCRSFile( CString sPath ) CString sDir, sFName, sExt; splitrelpath( sPath, sDir, sFName, sExt ); + sFName = sDir + sFName; CStringArray arrayPossibleBanners; - GetDirListing( "Courses/" + sFName + ".png", arrayPossibleBanners, false, true ); - GetDirListing( "Courses/" + sFName + ".jpg", arrayPossibleBanners, false, true ); - GetDirListing( "Courses/" + sFName + ".bmp", arrayPossibleBanners, false, true ); - GetDirListing( "Courses/" + sFName + ".gif", arrayPossibleBanners, false, true ); + GetDirListing( sFName + ".png", arrayPossibleBanners, false, true ); + GetDirListing( sFName + ".jpg", arrayPossibleBanners, false, true ); + GetDirListing( sFName + ".bmp", arrayPossibleBanners, false, true ); + GetDirListing( sFName + ".gif", arrayPossibleBanners, false, true ); if( !arrayPossibleBanners.empty() ) m_sBannerPath = arrayPossibleBanners[0];