summaryrefslogtreecommitdiff
path: root/platform/uwp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-03-26 20:27:36 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-03-26 20:27:36 +0100
commit93b7a85c98746ca7fefafa88dc1797de9867a521 (patch)
treeb0590f5b1ebcd2e70e6cd803aa71161100b96045 /platform/uwp
parent188ca5470b11222f3caf27082cfadce861dbaa60 (diff)
HTML5: Explain why export templates are missing
Same for UWP. This is skipped in DEV_ENABLED builds so contributors can still test the export pipeline (and CI still compiles it on debug builds).
Diffstat (limited to 'platform/uwp')
-rw-r--r--platform/uwp/export/export_plugin.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/uwp/export/export_plugin.cpp b/platform/uwp/export/export_plugin.cpp
index 230e5c749c..88343d6f85 100644
--- a/platform/uwp/export/export_plugin.cpp
+++ b/platform/uwp/export/export_plugin.cpp
@@ -131,6 +131,14 @@ void EditorExportPlatformUWP::get_export_options(List<ExportOption> *r_options)
}
bool EditorExportPlatformUWP::can_export(const Ref<EditorExportPreset> &p_preset, String &r_error, bool &r_missing_templates) const {
+#ifndef DEV_ENABLED
+ // We don't provide export templates for the UWP platform currently as it
+ // has not been ported for Godot 4.0. This is skipped in DEV_ENABLED so that
+ // contributors can still test the pipeline if/when we can build it again.
+ r_error = "The UWP platform is currently not supported in Godot 4.0.\n";
+ return false;
+#endif
+
String err;
bool valid = false;