mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
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.
This commit is contained in:
parent
c56a071d0c
commit
032a1c5dc3
2 changed files with 10 additions and 15 deletions
|
|
@ -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", "")) != "") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue