From 5c14019f77f4bd986cadcc91c260d4bd0607341d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 28 Jul 2004 01:43:01 +0000 Subject: [PATCH] don't cache banners if BNCACHE_OFF --- stepmania/src/Banner.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/stepmania/src/Banner.cpp b/stepmania/src/Banner.cpp index d773da8354..c39e819c63 100644 --- a/stepmania/src/Banner.cpp +++ b/stepmania/src/Banner.cpp @@ -21,12 +21,15 @@ Banner::Banner() m_bScrolling = false; m_fPercentScrolling = 0; - TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Banner","all music")) ); - TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Common","fallback banner")) ); - TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Banner","roulette")) ); - TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Banner","random")) ); - TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Banner","Sort")) ); - TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Banner","Mode")) ); + if( PREFSMAN->m_BannerCache != PrefsManager::BNCACHE_OFF ) + { + TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Banner","all music")) ); + TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Common","fallback banner")) ); + TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Banner","roulette")) ); + TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Banner","random")) ); + TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Banner","Sort")) ); + TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Banner","Mode")) ); + } } bool Banner::Load( RageTextureID ID )