From 5e685199de29dce3fe9e8fe8de3b9eb1f0054fe9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 11 Aug 2004 22:52:35 +0000 Subject: [PATCH] if banner caching is disabled, don't waste time on load --- stepmania/src/BannerCache.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/BannerCache.cpp b/stepmania/src/BannerCache.cpp index 5a0c0d91b7..807894da88 100644 --- a/stepmania/src/BannerCache.cpp +++ b/stepmania/src/BannerCache.cpp @@ -275,6 +275,9 @@ static inline int closest( int num, int n1, int n2 ) * if the memory or settings change. */ void BannerCache::CacheBanner( CString BannerPath ) { + if( PREFSMAN->m_BannerCache != PrefsManager::BNCACHE_LOW_RES ) + return; + CHECKPOINT_M( BannerPath ); if( !DoesFileExist(BannerPath) ) return;