show error messages
This commit is contained in:
@@ -337,9 +337,8 @@ bool DWILoader::LoadFromDWIFile( CString sPath, Song &out )
|
|||||||
m_sLoadingFile = sPath;
|
m_sLoadingFile = sPath;
|
||||||
|
|
||||||
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' for reading.", sPath.c_str() );
|
|
||||||
|
|
||||||
for( unsigned i=0; i<msd.GetNumValues(); i++ )
|
for( unsigned i=0; i<msd.GetNumValues(); i++ )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -260,9 +260,8 @@ void KSFLoader::LoadTags( const CString &str, Song &out )
|
|||||||
bool KSFLoader::LoadGlobalData( const CString &sPath, Song &out )
|
bool KSFLoader::LoadGlobalData( const CString &sPath, Song &out )
|
||||||
{
|
{
|
||||||
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() );
|
|
||||||
|
|
||||||
float BPMPos2 = -1, BPM2 = -1, BPMPos3 = -1, BPM3 = -1;;
|
float BPMPos2 = -1, BPM2 = -1, BPMPos3 = -1, BPM3 = -1;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user