Skip to content

Commit

Permalink
.toLower + fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine committed May 4, 2016
1 parent 6ae87f4 commit 743fc4e
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/core/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,7 @@ int main( int argc, char * * argv )
bool renderTracks = false;
QString fileToLoad, fileToImport, renderOut, profilerOutputFile, configFile;

// QString fileToLoad = "";
// QString fileToImport = "";
// QString renderOut = "";
// QString profilerOutputFile = "";
// QString fileToLoad = "", fileToImport = "", renderOut, profilerOutputFile;

// first of two command-line parsing stages
for( int i = 1; i < argc; ++i )
Expand Down Expand Up @@ -587,8 +584,8 @@ int main( int argc, char * * argv )
fileToLoad.toStdString().c_str() );
exit( 1 );
}
else if( !( fileInfoLoad.suffix() == "mmp" ||
fileInfoLoad.suffix() == "mmpz" ) )
else if( !( fileInfoLoad.suffix().toLower() == "mmp" ||
fileInfoLoad.suffix().toLower() == "mmpz" ) )
{
printf( "%s is not an LMMS project file!\n",
fileToLoad.toStdString().c_str() );
Expand All @@ -610,11 +607,11 @@ int main( int argc, char * * argv )
exit( 1 );
}
else if( !(
fileInfoImport.suffix() == "mid" ||
fileInfoImport.suffix() == "midi" ||
fileInfoImport.suffix() == "rmi" ||
fileInfoImport.suffix() == "flp" ||
fileInfoImport.suffix() == "h2song" ) )
fileInfoImport.suffix().toLower() == "mid" ||
fileInfoImport.suffix().toLower() == "midi" ||
fileInfoImport.suffix().toLower() == "rmi" ||
fileInfoImport.suffix().toLower() == "flp" ||
fileInfoImport.suffix().toLower() == "h2song" ) )
{
printf( ".%s is not a filetype that LMMS can import!\n",
fileInfoImport.suffix().toStdString().c_str() );
Expand Down

0 comments on commit 743fc4e

Please sign in to comment.