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:
@@ -17,13 +17,16 @@
|
|||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "Notes.h"
|
#include "Notes.h"
|
||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
|
#include "RageDisplay.h"
|
||||||
|
#include "arch/ArchHooks/ArchHooks.h"
|
||||||
|
|
||||||
|
|
||||||
bool DifficultyIcon::Load( CString sPath )
|
bool DifficultyIcon::Load( CString sPath )
|
||||||
{
|
{
|
||||||
Sprite::Load( sPath );
|
Sprite::Load( sPath );
|
||||||
if( GetNumStates() != 5 && GetNumStates() != 10 )
|
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();
|
StopAnimating();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user