diff options
| author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-11-17 18:02:41 +0100 |
|---|---|---|
| committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-11-17 18:26:03 +0100 |
| commit | 032a1c5dc34b8ebb785b2d34148138d4d16b9059 (patch) | |
| tree | e825b0e53a7fdee9b3a55736b608d48686d9174d /main | |
| parent | c56a071d0c6e282dbb82aa7e69691e33f6c2fd7e (diff) | |
| download | redot-engine-032a1c5dc34b8ebb785b2d34148138d4d16b9059.tar.gz | |
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.
Diffstat (limited to 'main')
| -rw-r--r-- | main/main.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
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", "")) != "") { |
