Cleanup RageException::Throw(). Do not use ssprintf() inside of Throw() and do not pass it bare error messages. Use RageException::Throw( "%s", sError.c_str() ); instead. Be consistent with quoting file names "%s" and theme metrics as "%s : %s". Try to make them complete English sentences when possible.
This commit is contained in:
@@ -139,7 +139,7 @@ void Sprite::LoadFromNode( const RString& sDir, const XNode* pNode )
|
||||
if( !pNode->GetAttrValue(sFrameKey, newState.iFrameIndex) )
|
||||
break;
|
||||
if( newState.iFrameIndex >= m_pTexture->GetNumFrames() )
|
||||
RageException::Throw( "In '%s', %s is %d, but the texture %s only has %d frames.",
|
||||
RageException::Throw( "In \"%s\", %s is %d, but the texture \"%s\" only has %d frames.",
|
||||
sDir.c_str(), sFrameKey.c_str(), newState.iFrameIndex, sPath.c_str(), m_pTexture->GetNumFrames() );
|
||||
|
||||
if( !pNode->GetAttrValue(sDelayKey, newState.fDelay) )
|
||||
|
||||
Reference in New Issue
Block a user