You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +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:
@@ -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", "")) != "") {
|
||||
|
||||
Reference in New Issue
Block a user