From 44017dabdf669b904b4a0d5218cacbf0a58ea10a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 30 Aug 2005 19:48:46 +0000 Subject: [PATCH] obey FastLoad --- stepmania/src/BannerCache.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/stepmania/src/BannerCache.cpp b/stepmania/src/BannerCache.cpp index bd9c35cbba..7bf8cdb556 100644 --- a/stepmania/src/BannerCache.cpp +++ b/stepmania/src/BannerCache.cpp @@ -340,10 +340,16 @@ void BannerCache::CacheBanner( CString BannerPath ) /* Check the full file hash. If it's the loaded and identical, don't recache. */ if( DoesFileExist(CachePath) ) { - unsigned CurFullHash; - const unsigned FullHash = GetHashForFile( BannerPath ); - if( BannerData.GetValue( BannerPath, "FullHash", CurFullHash ) && - CurFullHash == FullHash ) + bool bCacheUpToDate = PREFSMAN->m_bFastLoad; + if( !bCacheUpToDate ) + { + unsigned CurFullHash; + const unsigned FullHash = GetHashForFile( BannerPath ); + if( BannerData.GetValue( BannerPath, "FullHash", CurFullHash ) && CurFullHash == FullHash ) + bCacheUpToDate = true; + } + + if( bCacheUpToDate ) { /* It's identical. Just load it, if in preload. */ if( PREFSMAN->m_BannerCache == PrefsManager::BNCACHE_LOW_RES_PRELOAD )