aboutsummaryrefslogtreecommitdiff
path: root/editor/project_export.cpp
diff options
context:
space:
mode:
authorIgnacio Etcheverry2018-04-26 23:08:19 +0200
committerHein-Pieter van Braam2018-04-29 18:44:55 +0200
commitfe9da69f9607afab9794c6590a385935fb66bba6 (patch)
tree2230593fbedd7f27d3564dca5b29bdb707b375eb /editor/project_export.cpp
parentc358e4c728e5b0185d341dac24ea82a106aa7f2d (diff)
downloadgodot-fe9da69f9607afab9794c6590a385935fb66bba6.tar.gz
godot-fe9da69f9607afab9794c6590a385935fb66bba6.tar.zst
godot-fe9da69f9607afab9794c6590a385935fb66bba6.zip
Make 'Export PCK/ZIP' work well with EditorExportPlugin
Add debug flag to the 'Export PCK/ZIP' option Make 'Export PCK/ZIP' notify when the export process begins. This is necessary to receive the 'EditorExportPlugin::_export_begin' callback (cherry picked from commit 68b35de2b6ea23178061f65bc28b4f73e0c65f35)
Diffstat (limited to 'editor/project_export.cpp')
-rw-r--r--editor/project_export.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/editor/project_export.cpp b/editor/project_export.cpp
index 2cdc69355..05eff751c 100644
--- a/editor/project_export.cpp
+++ b/editor/project_export.cpp
@@ -697,9 +697,9 @@ void ProjectExportDialog::_export_pck_zip_selected(const String &p_path) {
ERR_FAIL_COND(platform.is_null());
if (p_path.ends_with(".zip")) {
- platform->save_zip(current, p_path);
+ platform->export_zip(current, export_pck_zip_debug->is_pressed(), p_path);
} else if (p_path.ends_with(".pck")) {
- platform->save_pack(current, p_path);
+ platform->export_pack(current, export_pck_zip_debug->is_pressed(), p_path);
}
}
@@ -975,6 +975,11 @@ ProjectExportDialog::ProjectExportDialog() {
export_debug->set_pressed(true);
export_project->get_vbox()->add_child(export_debug);
+ export_pck_zip_debug = memnew(CheckButton);
+ export_pck_zip_debug->set_text(TTR("Export With Debug"));
+ export_pck_zip_debug->set_pressed(true);
+ export_pck_zip->get_vbox()->add_child(export_pck_zip_debug);
+
set_hide_on_ok(false);
editor_icons = "EditorIcons";