Print error if no export destination has been passed

This commit is contained in:
est31 2015-11-26 21:59:25 +01:00
parent 772900c4ff
commit 523b67e740
1 changed files with 11 additions and 0 deletions

View File

@ -1086,6 +1086,17 @@ bool Main::start() {
#endif #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",""))!="") { if(script=="" && game_path=="" && String(GLOBAL_DEF("application/main_scene",""))!="") {
game_path=GLOBAL_DEF("application/main_scene",""); game_path=GLOBAL_DEF("application/main_scene","");
} }