From 35f29384a227b96b68e6234d009c8a60a0f6d5ef Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 2 Aug 2003 19:27:57 +0000 Subject: [PATCH] Don't throw when loading DifficultyIcon and the "missing" graphic is used. This happens on Xbox because of file name limitations. --- stepmania/src/DifficultyIcon.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/DifficultyIcon.cpp b/stepmania/src/DifficultyIcon.cpp index a0382f83d3..8abfd43a81 100644 --- a/stepmania/src/DifficultyIcon.cpp +++ b/stepmania/src/DifficultyIcon.cpp @@ -17,13 +17,16 @@ #include "RageLog.h" #include "Notes.h" #include "GameState.h" +#include "RageDisplay.h" +#include "arch/ArchHooks/ArchHooks.h" bool DifficultyIcon::Load( CString sPath ) { Sprite::Load( sPath ); if( GetNumStates() != 5 && GetNumStates() != 10 ) - RageException::Throw( "The difficulty icon graphic '%s' must have 5 or 10 frames.", sPath.c_str() ); + if( DISPLAY->IsWindowed() ) + HOOKS->MessageBoxOK( "The difficulty icon graphic '%s' must have 5 or 10 frames.", sPath.c_str() ); StopAnimating(); return true; }