From 2a542c6ebfd85a29778d5bb6b254947f4377c961 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 20 Feb 2004 04:53:51 +0000 Subject: [PATCH] make failed banner caching nonfatal --- stepmania/src/BannerCache.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stepmania/src/BannerCache.cpp b/stepmania/src/BannerCache.cpp index 10eddf74b3..98ab6f9871 100644 --- a/stepmania/src/BannerCache.cpp +++ b/stepmania/src/BannerCache.cpp @@ -304,8 +304,11 @@ void BannerCache::CacheBanner( CString BannerPath ) void BannerCache::CacheBannerInternal( CString BannerPath ) { SDL_Surface *img = SDL_LoadImage( BannerPath ); - if(img == NULL) - RageException::Throw( "BannerCache::CacheBanner: Couldn't load %s: %s", BannerPath.c_str(), SDL_GetError() ); + if( img == NULL ) + { + LOG->Warn( "BannerCache::CacheBanner: Couldn't load %s: %s", BannerPath.c_str(), SDL_GetError() ); + return; + } bool WasRotatedBanner = false;