diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index 2967b12494..428bd9883c 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -24,6 +24,7 @@ #include "TitleSubstitution.h" #include "Notes.h" #include "GameState.h" +#include "BannerCache.h" Course::Course() @@ -121,8 +122,13 @@ void Course::LoadFromCRSFile( CString sPath ) GetDirListing( sFName + ".bmp", arrayPossibleBanners, false, true ); GetDirListing( sFName + ".gif", arrayPossibleBanners, false, true ); if( !arrayPossibleBanners.empty() ) + { m_sBannerPath = arrayPossibleBanners[0]; + /* Cache and load the course banner. */ + BANNERCACHE->CacheBanner( m_sBannerPath ); + } + for( unsigned i=0; iGetBannerPath() ); - BeforeChange(); - m_Banner[GetBackIndex()].LoadFromCourse( pCourse ); + LoadFromCachedBanner( pCourse->m_sBannerPath ); +// BeforeChange(); +// m_Banner[GetBackIndex()].LoadFromCourse( pCourse ); } void FadingBanner::LoadRoulette()