Changing BannerCache into ImageCache to support more imagetypes (#1532)

This commit is contained in:
Alexander Griffin
2017-09-19 14:49:42 -07:00
committed by MrThatKid
parent 13fbbe5e36
commit c0981c42ec
24 changed files with 305 additions and 231 deletions
+6 -17
View File
@@ -77,26 +77,16 @@ XToString( ShowDancingCharacters );
StringToX( ShowDancingCharacters );
LuaXType( ShowDancingCharacters );
static const char *BannerCacheModeNames[] = {
static const char *ImageCacheModeNames[] = {
"Off",
"LowResPreload",
"LowResLoadOnDemand",
"Full"
};
XToString( BannerCacheMode );
StringToX( BannerCacheMode );
LuaXType( BannerCacheMode );
/*
static const char *BackgroundCacheModeNames[] = {
"Off",
"LowResPreload",
"LowResLoadOnDemand",
"Full"
};
XToString( BackgroundCacheMode );
StringToX( BackgroundCacheMode );
LuaXType( BackgroundCacheMode );
*/
XToString( ImageCacheMode );
StringToX( ImageCacheMode );
LuaXType( ImageCacheMode );
static const char *HighResolutionTexturesNames[] = {
"Auto",
"ForceOff",
@@ -191,8 +181,7 @@ PrefsManager::PrefsManager() :
m_bPAL ( "PAL", false ),
m_bDelayedTextureDelete ( "DelayedTextureDelete", false ),
m_bDelayedModelDelete ( "DelayedModelDelete", false ),
m_BannerCache ( "BannerCache", BNCACHE_LOW_RES_PRELOAD ),
//m_BackgroundCache ( "BackgroundCache", BGCACHE_LOW_RES_PRELOAD ),
m_ImageCache ( "ImageCache", IMGCACHE_LOW_RES_PRELOAD ),
m_bFastLoad ( "FastLoad", true ),
m_bFastLoadAdditionalSongs ( "FastLoadAdditionalSongs", true ),
m_NeverCacheList ( "NeverCacheList", ""),