void FadingBanner::LoadFromCourse( const Course* pCourse ) { if( pCourse == nullptr ) { LoadFallback(); return; } /* Don't call HasBanner. That'll do disk access and cause the music wheel * to skip. */ std::string sPath = pCourse->GetBannerPath(); if( sPath.empty() ) LoadCourseFallback(); else LoadFromCachedBanner( sPath ); }
void FadingBanner::LoadFromCourse( const Course* pCourse ) { LoadFromCachedBanner( pCourse->m_sBannerPath ); }
void FadingBanner::LoadFromGroup( CString sGroupName ) { const CString sGroupBannerPath = SONGMAN->GetGroupBannerPath( sGroupName ); LoadFromCachedBanner( sGroupBannerPath ); }
void FadingBanner::LoadFromSong( const Song* pSong ) { /* Don't call HasBanner. That'll do disk access and cause the music wheel * to skip. */ LoadFromCachedBanner( pSong->GetBannerPath() ); }
void FadingBanner::LoadFromSongGroup( std::string sSongGroup ) { const std::string sGroupBannerPath = SONGMAN->GetSongGroupBannerPath( sSongGroup ); LoadFromCachedBanner( sGroupBannerPath ); }