reload banner cache on reload songs

This commit is contained in:
Chris Danford
2006-05-05 08:16:32 +00:00
parent 0f9d78b06d
commit 1eee0be3b1
2 changed files with 7 additions and 1 deletions
+6 -1
View File
@@ -168,7 +168,7 @@ void BannerCache::UnloadAllBanners()
BannerCache::BannerCache()
{
BannerData.ReadFile( BANNER_CACHE_INDEX ); // don't care if this fails
ReadFromDisk();
}
BannerCache::~BannerCache()
@@ -176,6 +176,11 @@ BannerCache::~BannerCache()
UnloadAllBanners();
}
void BannerCache::ReadFromDisk()
{
BannerData.ReadFile( BANNER_CACHE_INDEX ); // don't care if this fails
}
struct BannerTexture: public RageTexture
{
unsigned m_uTexHandle;
+1
View File
@@ -20,6 +20,7 @@ class BannerCache
public:
BannerCache();
~BannerCache();
void ReadFromDisk();
RageTextureID LoadCachedBanner( RString BannerPath );
void CacheBanner( RString BannerPath );