show error message
This commit is contained in:
@@ -182,9 +182,8 @@ bool SMLoader::LoadFromSMFile( CString sPath, Song &out )
|
|||||||
LOG->Trace( "Song::LoadFromSMFile(%s)", sPath.c_str() );
|
LOG->Trace( "Song::LoadFromSMFile(%s)", sPath.c_str() );
|
||||||
|
|
||||||
MsdFile msd;
|
MsdFile msd;
|
||||||
bool bResult = msd.ReadFile( sPath );
|
if( !msd.ReadFile( sPath ) )
|
||||||
if( !bResult )
|
RageException::Throw( "Error opening file \"%s\": %s", sPath.c_str(), msd.GetError().c_str() );
|
||||||
RageException::Throw( "Error opening file '%s'.", sPath.c_str() );
|
|
||||||
|
|
||||||
out.m_Timing.m_sFile = sPath;
|
out.m_Timing.m_sFile = sPath;
|
||||||
LoadTimingFromSMFile( msd, out.m_Timing );
|
LoadTimingFromSMFile( msd, out.m_Timing );
|
||||||
@@ -391,9 +390,8 @@ bool SMLoader::LoadEdit( CString sEditFilePath, ProfileSlot slot )
|
|||||||
}
|
}
|
||||||
|
|
||||||
MsdFile msd;
|
MsdFile msd;
|
||||||
bool bResult = msd.ReadFile( sEditFilePath );
|
if( !msd.ReadFile( sEditFilePath ) )
|
||||||
if( !bResult )
|
RageException::Throw( "Error opening file \"%s\": %s", sEditFilePath.c_str(), msd.GetError().c_str() );
|
||||||
RageException::Throw( "Error opening file '%s'.", sEditFilePath.c_str() );
|
|
||||||
|
|
||||||
Song* pSong = NULL;
|
Song* pSong = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user