make failed banner caching nonfatal

This commit is contained in:
Glenn Maynard
2004-02-20 04:53:51 +00:00
parent 1d580d2a0f
commit 2a542c6ebf
+5 -2
View File
@@ -304,8 +304,11 @@ void BannerCache::CacheBanner( CString BannerPath )
void BannerCache::CacheBannerInternal( CString BannerPath ) void BannerCache::CacheBannerInternal( CString BannerPath )
{ {
SDL_Surface *img = SDL_LoadImage( BannerPath ); SDL_Surface *img = SDL_LoadImage( BannerPath );
if(img == NULL) if( img == NULL )
RageException::Throw( "BannerCache::CacheBanner: Couldn't load %s: %s", BannerPath.c_str(), SDL_GetError() ); {
LOG->Warn( "BannerCache::CacheBanner: Couldn't load %s: %s", BannerPath.c_str(), SDL_GetError() );
return;
}
bool WasRotatedBanner = false; bool WasRotatedBanner = false;