Browse Source

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.
Hugo Locurcio 1 year ago
parent
commit
e334bf6df4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      modules/openxr/register_types.cpp

+ 3 - 1
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);