diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-03-09 10:41:52 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-04-19 08:35:59 +0300 |
commit | 0088981c4048c1779980a694986d715b11be1a45 (patch) | |
tree | ed8c5f309ad767a7b4e35b558fd65ee081298023 /platform/uwp/export | |
parent | 1b4b8934e080ec5300c78547527517f4a5b733e9 (diff) | |
download | redot-engine-0088981c4048c1779980a694986d715b11be1a45.tar.gz |
[Export] Add readable descriptions and validation warnings to the export options.
Diffstat (limited to 'platform/uwp/export')
-rw-r--r-- | platform/uwp/export/export.cpp | 4 | ||||
-rw-r--r-- | platform/uwp/export/export.h | 1 | ||||
-rw-r--r-- | platform/uwp/export/export_plugin.cpp | 2 | ||||
-rw-r--r-- | platform/uwp/export/export_plugin.h | 2 |
4 files changed, 7 insertions, 2 deletions
diff --git a/platform/uwp/export/export.cpp b/platform/uwp/export/export.cpp index f2b2fa30ce..85964c53e6 100644 --- a/platform/uwp/export/export.cpp +++ b/platform/uwp/export/export.cpp @@ -33,6 +33,10 @@ #include "editor/editor_settings.h" #include "export_plugin.h" +void register_uwp_exporter_types() { + // GDREGISTER_VIRTUAL_CLASS(EditorExportPlatformUWP); +} + void register_uwp_exporter() { #ifdef WINDOWS_ENABLED EDITOR_DEF("export/uwp/signtool", ""); diff --git a/platform/uwp/export/export.h b/platform/uwp/export/export.h index 09449fc53b..d2053e02b1 100644 --- a/platform/uwp/export/export.h +++ b/platform/uwp/export/export.h @@ -31,6 +31,7 @@ #ifndef UWP_EXPORT_H #define UWP_EXPORT_H +void register_uwp_exporter_types(); void register_uwp_exporter(); #endif // UWP_EXPORT_H diff --git a/platform/uwp/export/export_plugin.cpp b/platform/uwp/export/export_plugin.cpp index f810cb0ca9..163236e506 100644 --- a/platform/uwp/export/export_plugin.cpp +++ b/platform/uwp/export/export_plugin.cpp @@ -62,7 +62,7 @@ void EditorExportPlatformUWP::get_preset_features(const Ref<EditorExportPreset> r_features->push_back(p_preset->get("binary_format/architecture")); } -void EditorExportPlatformUWP::get_export_options(List<ExportOption> *r_options) { +void EditorExportPlatformUWP::get_export_options(List<ExportOption> *r_options) const { r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "custom_template/debug", PROPERTY_HINT_GLOBAL_FILE, "*.zip"), "")); r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "custom_template/release", PROPERTY_HINT_GLOBAL_FILE, "*.zip"), "")); diff --git a/platform/uwp/export/export_plugin.h b/platform/uwp/export/export_plugin.h index d015fcabcd..37a32b1f7f 100644 --- a/platform/uwp/export/export_plugin.h +++ b/platform/uwp/export/export_plugin.h @@ -427,7 +427,7 @@ public: virtual void get_preset_features(const Ref<EditorExportPreset> &p_preset, List<String> *r_features) const override; - virtual void get_export_options(List<ExportOption> *r_options) override; + virtual void get_export_options(List<ExportOption> *r_options) const override; virtual bool has_valid_export_configuration(const Ref<EditorExportPreset> &p_preset, String &r_error, bool &r_missing_templates) const override; virtual bool has_valid_project_configuration(const Ref<EditorExportPreset> &p_preset, String &r_error) const override; |