fix spurious warnings
This commit is contained in:
@@ -51,7 +51,7 @@ CString BannerCache::GetBannerCachePath( CString BannerPath )
|
|||||||
|
|
||||||
void BannerCache::LoadBanner( CString BannerPath )
|
void BannerCache::LoadBanner( CString BannerPath )
|
||||||
{
|
{
|
||||||
if( !PREFSMAN->m_bBannerCache )
|
if( !PREFSMAN->m_bBannerCache || BannerPath == "" )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Load it. */
|
/* Load it. */
|
||||||
@@ -211,6 +211,9 @@ RageTextureID BannerCache::LoadCachedBanner( CString BannerPath )
|
|||||||
{
|
{
|
||||||
RageTextureID ID( GetBannerCachePath(BannerPath) );
|
RageTextureID ID( GetBannerCachePath(BannerPath) );
|
||||||
|
|
||||||
|
if( BannerPath == "" )
|
||||||
|
return ID;
|
||||||
|
|
||||||
LOG->Trace("BannerCache::LoadCachedBanner(%s): %s", BannerPath.c_str(), ID.filename.c_str() );
|
LOG->Trace("BannerCache::LoadCachedBanner(%s): %s", BannerPath.c_str(), ID.filename.c_str() );
|
||||||
|
|
||||||
/* Hack: make sure Banner::Load doesn't change our return value and end up
|
/* Hack: make sure Banner::Load doesn't change our return value and end up
|
||||||
|
|||||||
Reference in New Issue
Block a user