if banner caching is disabled, don't waste time on load

This commit is contained in:
Glenn Maynard
2004-08-11 22:52:35 +00:00
parent e88a5994c1
commit 5e685199de
+3
View File
@@ -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;