Don't throw when loading DifficultyIcon and the "missing" graphic is used. This happens on Xbox because of file name limitations.

This commit is contained in:
Chris Danford
2003-08-02 19:27:57 +00:00
parent 3a4206bb73
commit 35f29384a2
+4 -1
View File
@@ -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;
}