Merge pull request #2266 from michaelgregorius/2262-render-check-file

Fixes #2262
This commit is contained in:
Tres Finocchiaro
2015-08-17 16:47:13 -04:00

View File

@@ -575,6 +575,13 @@ int main( int argc, char * * argv )
{
Engine::init( true );
QFileInfo fileInfo( fileToLoad );
if ( !fileInfo.exists() )
{
printf("The file %s does not exist!\n", fileToLoad.toStdString().c_str());
exit( 1 );
}
printf( "Loading project...\n" );
Engine::getSong()->loadProject( fileToLoad );
printf( "Done\n" );