convert more prefs to use Preference

This commit is contained in:
Chris Danford
2004-12-04 10:35:50 +00:00
parent 5b880bd707
commit 005a7f5efa
11 changed files with 117 additions and 153 deletions
+3 -3
View File
@@ -56,7 +56,7 @@ CString BannerCache::GetBannerCachePath( CString BannerPath )
void BannerCache::LoadBanner( CString BannerPath )
{
if( PREFSMAN->m_BannerCache != PrefsManager::BNCACHE_LOW_RES || BannerPath == "" )
if( PREFSMAN->m_iBannerCache != PrefsManager::BNCACHE_LOW_RES || BannerPath == "" )
return;
/* Load it. */
@@ -276,7 +276,7 @@ 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 )
if( PREFSMAN->m_iBannerCache != PrefsManager::BNCACHE_LOW_RES )
return;
CHECKPOINT_M( BannerPath );
@@ -413,7 +413,7 @@ void BannerCache::CacheBannerInternal( CString BannerPath )
const CString CachePath = GetBannerCachePath(BannerPath);
RageSurfaceUtils::SaveSurface( img, CachePath );
if( PREFSMAN->m_BannerCache == PrefsManager::BNCACHE_LOW_RES )
if( PREFSMAN->m_iBannerCache == PrefsManager::BNCACHE_LOW_RES )
{
/* If an old image is loaded, free it. */
if( g_BannerPathToImage.find(BannerPath) != g_BannerPathToImage.end() )