VERY experimental Nintendo Switch 2 emulator
C++
emu_window_sdl2_vk: Specify the window manager if it should be supported
lat9nq1b8bba7f0d69
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cppindex b6049b032e..7c870aea1d 100644--- a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp@@ -57,6 +57,11 @@ EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(InputCommon::InputSubsystem* input_subsystewindow_info.type = Core::Frontend::WindowSystemType::Windows;window_info.render_surface = reinterpret_cast<void*>(wm.info.win.window);break;+#else+ case SDL_SYSWM_TYPE::SDL_SYSWM_WINDOWS:+ LOG_CRITICAL(Frontend, "Window manager subsystem Windows not compiled");+ std::exit(EXIT_FAILURE);+ break;#endif#ifdef SDL_VIDEO_DRIVER_X11case SDL_SYSWM_TYPE::SDL_SYSWM_X11:@@ -64,6 +69,11 @@ EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(InputCommon::InputSubsystem* input_subsystewindow_info.display_connection = wm.info.x11.display;window_info.render_surface = reinterpret_cast<void*>(wm.info.x11.window);break;+#else+ case SDL_SYSWM_TYPE::SDL_SYSWM_X11:+ LOG_CRITICAL(Frontend, "Window manager subsystem X11 not compiled");+ std::exit(EXIT_FAILURE);+ break;#endif#ifdef SDL_VIDEO_DRIVER_WAYLANDcase SDL_SYSWM_TYPE::SDL_SYSWM_WAYLAND:@@ -71,6 +81,11 @@ EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(InputCommon::InputSubsystem* input_subsystewindow_info.display_connection = wm.info.wl.display;window_info.render_surface = wm.info.wl.surface;break;+#else+ case SDL_SYSWM_TYPE::SDL_SYSWM_WAYLAND:+ LOG_CRITICAL(Frontend, "Window manager subsystem Wayland not compiled");+ std::exit(EXIT_FAILURE);+ break;#endifdefault:LOG_CRITICAL(Frontend, "Window manager subsystem not implemented");