From e334bf6df496ae9ef5b7a13ed2cd0f45d6d48fc2 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 28 Mar 2024 06:17:54 +0100 Subject: [PATCH] Tweak OpenXR alert to mention WMR only on Windows WMR isn't supported on non-Windows platforms, so there's no point in mentioning it in the error message as it's not a possible cause for OpenXR not initializing. --- modules/openxr/register_types.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/openxr/register_types.cpp b/modules/openxr/register_types.cpp index 3d34b27407c3..ba468b6967a4 100644 --- a/modules/openxr/register_types.cpp +++ b/modules/openxr/register_types.cpp @@ -135,7 +135,9 @@ void initialize_openxr_module(ModuleInitializationLevel p_level) { const char *init_error_message = "OpenXR was requested but failed to start.\n" "Please check if your HMD is connected.\n" - "When using Windows MR please note that WMR only has DirectX support, make sure SteamVR is your default OpenXR runtime.\n" +#ifdef WINDOWS_ENABLED + "When using Windows Mixed Reality, note that WMR only has DirectX support. Make sure SteamVR is your default OpenXR runtime.\n" +#endif "Godot will start in normal mode.\n"; WARN_PRINT(init_error_message);