Merge pull request #2266 from michaelgregorius/2262-render-check-file
Fixes #2262
This commit is contained in:
@@ -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" );
|
||||
|
||||
Reference in New Issue
Block a user