diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2022-03-20 22:30:31 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2022-03-21 12:50:31 -0500 |
commit | f301451fa3304ad2072898838ea9801b044ffbd9 (patch) | |
tree | a83a1f8334af52f9f88538fa52d8e01028c77f25 /platform/windows/export | |
parent | 5a28b1ae5118d05b5d22fe2f6f1109f839058c9d (diff) |
Move extension logic to EditorExportPlatformLinuxBSD
Diffstat (limited to 'platform/windows/export')
-rw-r--r-- | platform/windows/export/export.cpp | 1 | ||||
-rw-r--r-- | platform/windows/export/export_plugin.cpp | 6 | ||||
-rw-r--r-- | platform/windows/export/export_plugin.h | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/platform/windows/export/export.cpp b/platform/windows/export/export.cpp index 2a42fbf6f1..37fdf93ecf 100644 --- a/platform/windows/export/export.cpp +++ b/platform/windows/export/export.cpp @@ -55,7 +55,6 @@ void register_windows_exporter() { logo->create_from_image(img); platform->set_logo(logo); platform->set_name("Windows Desktop"); - platform->set_extension("exe"); platform->set_release_32("windows_32_release.exe"); platform->set_debug_32("windows_32_debug.exe"); platform->set_release_64("windows_64_release.exe"); diff --git a/platform/windows/export/export_plugin.cpp b/platform/windows/export/export_plugin.cpp index e579c967fb..f20cff90c1 100644 --- a/platform/windows/export/export_plugin.cpp +++ b/platform/windows/export/export_plugin.cpp @@ -86,6 +86,12 @@ Error EditorExportPlatformWindows::export_project(const Ref<EditorExportPreset> return err; } +List<String> EditorExportPlatformWindows::get_binary_extensions(const Ref<EditorExportPreset> &p_preset) const { + List<String> list; + list.push_back("exe"); + return list; +} + bool EditorExportPlatformWindows::get_export_option_visibility(const String &p_option, const Map<StringName, Variant> &p_options) const { // This option is not supported by "osslsigncode", used on non-Windows host. if (!OS::get_singleton()->has_feature("windows") && p_option == "codesign/identity_type") { diff --git a/platform/windows/export/export_plugin.h b/platform/windows/export/export_plugin.h index c483917a4c..04707a5667 100644 --- a/platform/windows/export/export_plugin.h +++ b/platform/windows/export/export_plugin.h @@ -45,6 +45,7 @@ class EditorExportPlatformWindows : public EditorExportPlatformPC { public: virtual Error export_project(const Ref<EditorExportPreset> &p_preset, bool p_debug, const String &p_path, int p_flags = 0) override; virtual Error sign_shared_object(const Ref<EditorExportPreset> &p_preset, bool p_debug, const String &p_path) override; + virtual List<String> get_binary_extensions(const Ref<EditorExportPreset> &p_preset) const override; virtual void get_export_options(List<ExportOption> *r_options) override; virtual bool get_export_option_visibility(const String &p_option, const Map<StringName, Variant> &p_options) const override; virtual bool can_export(const Ref<EditorExportPreset> &p_preset, String &r_error, bool &r_missing_templates) const override; |