preload cache banners

This commit is contained in:
Glenn Maynard
2003-11-25 23:01:53 +00:00
parent da160607b8
commit 0017ffac05
+10
View File
@@ -321,6 +321,16 @@ void SongManager::PreloadSongImages()
TEXTUREMAN->CacheTexture( ID );
}
vector<Course*> courses;
SONGMAN->GetAllCourses( courses, false );
for( i = 0; i < courses.size(); ++i )
{
if( !courses[i]->HasBanner() )
continue;
const RageTextureID ID = Banner::BannerTex( courses[i]->m_sBannerPath );
TEXTUREMAN->CacheTexture( ID );
}
}
void SongManager::FreeSongs()