From 4a3fca6242d56e164ce9ce8d68b76cc7584613ae Mon Sep 17 00:00:00 2001 From: Oskar Wallgren Date: Thu, 5 May 2016 02:35:49 +0200 Subject: [PATCH] Kinder messages and .mpt valid project file --- src/core/main.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/core/main.cpp b/src/core/main.cpp index 56864f0053b..0ac60822dbb 100644 --- a/src/core/main.cpp +++ b/src/core/main.cpp @@ -574,20 +574,21 @@ int main( int argc, char * * argv ) { if( !fileInfoLoad.exists() ) { - printf( "The file %s does not exist!\n", + printf( "The file %s does not exist.\n", fileToLoad.toStdString().c_str() ); exit( 1 ); } else if( fileInfoLoad.isDir() ) { - printf( "%s is a directory!\n", + printf( "%s is a directory.\n", fileToLoad.toStdString().c_str() ); exit( 1 ); } - else if( !( fileInfoLoad.suffix().toLower() == "mmp" || - fileInfoLoad.suffix().toLower() == "mmpz" ) ) + else if( !( fileInfoLoad.suffix().toLower() == "mmp" || + fileInfoLoad.suffix().toLower() == "mmpz" || + fileInfoLoad.suffix().toLower() == "mpt" ) ) { - printf( "%s is not an LMMS project file!\n", + printf( "%s is not an LMMS project file.\n", fileToLoad.toStdString().c_str() ); exit( 1 ); } @@ -596,13 +597,13 @@ int main( int argc, char * * argv ) { if( !fileInfoImport.exists() ) { - printf( "The file %s does not exist!\n", + printf( "The file %s does not exist.\n", fileToImport.toStdString().c_str() ); exit( 1 ); } else if( fileInfoImport.isDir() ) { - printf( "%s is a directory!\n", + printf( "%s is a directory.\n", fileToImport.toStdString().c_str() ); exit( 1 ); } @@ -613,7 +614,7 @@ int main( int argc, char * * argv ) fileInfoImport.suffix().toLower() == "flp" || fileInfoImport.suffix().toLower() == "h2song" ) ) { - printf( ".%s is not a filetype that LMMS can import!\n", + printf( ".%s is not a filetype that LMMS can import.\n", fileInfoImport.suffix().toStdString().c_str() ); exit( 1 ); }