From 523b67e740121b0f429676a6e2e76520030e872d Mon Sep 17 00:00:00 2001 From: est31 Date: Thu, 26 Nov 2015 21:59:25 +0100 Subject: [PATCH] Print error if no export destination has been passed --- main/main.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/main/main.cpp b/main/main.cpp index 80a7cbc5fc5..a060dbd232e 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -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",""); }