make xml parse errors non fatal
This commit is contained in:
@@ -331,7 +331,10 @@ Actor* ActorUtil::MakeActor( const RageTextureID &ID )
|
|||||||
{
|
{
|
||||||
XNode xml;
|
XNode xml;
|
||||||
if( !xml.LoadFromFile(sXml) )
|
if( !xml.LoadFromFile(sXml) )
|
||||||
RageException::Throw( ssprintf("Error loading %s", sXml.c_str()) );
|
{
|
||||||
|
// XNode will warn about the error
|
||||||
|
return new Sprite;
|
||||||
|
}
|
||||||
return LoadFromActorFile( sDir, &xml );
|
return LoadFromActorFile( sDir, &xml );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user