diff options
| author | Ignacio Etcheverry | 2018-04-26 23:08:19 +0200 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-04-29 18:44:55 +0200 |
| commit | fe9da69f9607afab9794c6590a385935fb66bba6 (patch) | |
| tree | 2230593fbedd7f27d3564dca5b29bdb707b375eb /editor/editor_export.cpp | |
| parent | c358e4c728e5b0185d341dac24ea82a106aa7f2d (diff) | |
| download | godot-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/editor_export.cpp')
| -rw-r--r-- | editor/editor_export.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/editor/editor_export.cpp b/editor/editor_export.cpp index 8e4d241a8..7739b08ef 100644 --- a/editor/editor_export.cpp +++ b/editor/editor_export.cpp @@ -911,6 +911,16 @@ Error EditorExportPlatform::save_zip(const Ref<EditorExportPreset> &p_preset, co return OK; } +Error EditorExportPlatform::export_pack(const Ref<EditorExportPreset> &p_preset, bool p_debug, const String &p_path, int p_flags) { + ExportNotifier notifier(*this, p_preset, p_debug, p_path, p_flags); + return save_pack(p_preset, p_path); +} + +Error EditorExportPlatform::export_zip(const Ref<EditorExportPreset> &p_preset, bool p_debug, const String &p_path, int p_flags) { + ExportNotifier notifier(*this, p_preset, p_debug, p_path, p_flags); + return save_zip(p_preset, p_path); +} + void EditorExportPlatform::gen_export_flags(Vector<String> &r_flags, int p_flags) { String host = EditorSettings::get_singleton()->get("network/debug/remote_host"); |
