Merge pull request #2921 from est31/error_if_no_export_to

Print error if no export destination has been passed
This commit is contained in:
Rémi Verschelde 2015-11-26 23:06:13 +01:00
commit 82413bd2a1

View file

@ -1086,6 +1086,17 @@ bool Main::start() {
#endif
if (_export_platform!="") {
if (game_path=="") {
String err="Command line param ";
err+=export_debug?"-export_debug":"-export";
err+=" passed but no destination path given.\n";
err+="Please specify the binary's file path to export to. Aborting export.";
ERR_PRINT(err.utf8().get_data());
return false;
}
}
if(script=="" && game_path=="" && String(GLOBAL_DEF("application/main_scene",""))!="") {
game_path=GLOBAL_DEF("application/main_scene","");
}