void Banner::LoadFromCourse( const Course *pCourse ) // NULL means no course { if( pCourse == NULL ) LoadFallback(); else if( pCourse->GetBannerPath() != "" ) Load( pCourse->GetBannerPath() ); else LoadCourseFallback(); m_bScrolling = false; }
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 ); }