Skip to content

Commit

Permalink
Kinder messages and .mpt valid project file
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine committed May 5, 2016
1 parent 743fc4e commit 4a3fca6
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/core/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand All @@ -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 );
}
Expand All @@ -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 );
}
Expand Down

0 comments on commit 4a3fca6

Please sign in to comment.