diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-10-01 17:30:49 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-10-01 17:30:49 +0200 |
commit | 70ac89e7763d79ee7fb93e0579d9836149baa5d0 (patch) | |
tree | a626e8c990d256c11d5b5637c71f07e6844fba4a /editor/export/editor_export_plugin.cpp | |
parent | 60708ccbfee37f6b681d2c7d0e36d411e91f3b6b (diff) | |
parent | 7a909896f73cf7ed81ba39028b75315ecf851628 (diff) | |
download | redot-engine-70ac89e7763d79ee7fb93e0579d9836149baa5d0.tar.gz |
Merge pull request #96980 from m4gr3d/enable_legacy_build_customization_by_plugin
Expose `get_export_option_visibility` to editor plugins
Diffstat (limited to 'editor/export/editor_export_plugin.cpp')
-rw-r--r-- | editor/export/editor_export_plugin.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/export/editor_export_plugin.cpp b/editor/export/editor_export_plugin.cpp index 2f57010c2c..bd9c3503f7 100644 --- a/editor/export/editor_export_plugin.cpp +++ b/editor/export/editor_export_plugin.cpp @@ -295,6 +295,12 @@ bool EditorExportPlugin::_should_update_export_options(const Ref<EditorExportPla return ret; } +bool EditorExportPlugin::_get_export_option_visibility(const Ref<EditorExportPlatform> &p_export_platform, const String &p_option_name) const { + bool ret = true; + GDVIRTUAL_CALL(_get_export_option_visibility, p_export_platform, p_option_name, ret); + return ret; +} + String EditorExportPlugin::_get_export_option_warning(const Ref<EditorExportPlatform> &p_export_platform, const String &p_option_name) const { String ret; GDVIRTUAL_CALL(_get_export_option_warning, p_export_platform, p_option_name, ret); @@ -354,6 +360,7 @@ void EditorExportPlugin::_bind_methods() { GDVIRTUAL_BIND(_get_export_options, "platform"); GDVIRTUAL_BIND(_get_export_options_overrides, "platform"); GDVIRTUAL_BIND(_should_update_export_options, "platform"); + GDVIRTUAL_BIND(_get_export_option_visibility, "platform", "option"); GDVIRTUAL_BIND(_get_export_option_warning, "platform", "option"); GDVIRTUAL_BIND(_get_export_features, "platform", "debug"); |