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:
@@ -55,7 +55,7 @@ void RageSoundManager::Init()
|
||||
|
||||
m_pDriver = MakeRageSoundDriver( sDrivers );
|
||||
if( m_pDriver == NULL )
|
||||
RageException::Throw( COULDNT_FIND_SOUND_DRIVER.GetValue() );
|
||||
RageException::Throw( "%s", COULDNT_FIND_SOUND_DRIVER.GetValue().c_str() );
|
||||
}
|
||||
|
||||
RageSoundManager::~RageSoundManager()
|
||||
|
||||
Reference in New Issue
Block a user