s/throw RageException/RageException::Throw/

This commit is contained in:
Glenn Maynard
2002-12-21 18:36:10 +00:00
parent 783a9de6b0
commit 33c1fb46f7
8 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -250,7 +250,7 @@ bool DWILoader::LoadFromDWIFile( CString sPath, Song &out )
MsdFile msd;
bool bResult = msd.ReadFile( sPath );
if( !bResult )
throw RageException( "Error opening file '%s' for reading.", sPath.GetString() );
RageException::Throw( "Error opening file '%s' for reading.", sPath.GetString() );
for( unsigned i=0; i<msd.m_iNumValues; i++ )
{
@@ -378,7 +378,7 @@ bool DWILoader::LoadFromDir( CString sPath, Song &out )
GetApplicableFiles( sPath, aFileNames );
if( aFileNames.size() > 1 )
throw RageException( "There is more than one DWI file in '%s'. There should be only one!", sPath.GetString() );
RageException::Throw( "There is more than one DWI file in '%s'. There should be only one!", sPath.GetString() );
/* We should have exactly one; if we had none, we shouldn't have been
* called to begin with. */