From 032a1c5dc34b8ebb785b2d34148138d4d16b9059 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Tue, 17 Nov 2020 18:02:41 +0100 Subject: Fix CLI export when export_path is in preset. Export presets contains the export_path option, to specify the default export location, but the CLI export option disregarded that, and always required and export path to be specified. After this commit, if the export path is not specified in the command, the one in the preset will be used, erroring only if it's not present or invalid. --- main/main.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'main') diff --git a/main/main.cpp b/main/main.cpp index 29497cd1cf..51d2cbfe71 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1890,14 +1890,6 @@ bool Main::start() { return false; } - if (_export_preset != "") { - if (positional_arg == "") { - String err = "Command line includes export parameter option, but no destination path was given.\n"; - err += "Please specify the binary's file path to export to. Aborting export."; - ERR_PRINT(err); - return false; - } - } #endif if (script == "" && game_path == "" && String(GLOBAL_DEF("application/run/main_scene", "")) != "") { -- cgit v1.2.3