Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

externals/CMakeLists: fix detection/init of Switch controllers in SDL 2.0.18

Andrew Udvaredf677c8e92fe
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index 64d1e6aec4..598f819780 100644
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -52,11 +52,12 @@ endif()
# SDL2
if (YUZU_USE_EXTERNAL_SDL2)
if (NOT WIN32)
- # Yuzu itself needs: Events Joystick Haptic Sensor Timers Audio
+ # Yuzu itself needs: Events Joystick Haptic Sensor Timers Audio Threads Atomic
+ # Since 2.0.18 Threads/Atomic required for HIDAPI/libusb (see https://github.com/libsdl-org/SDL/issues/5095)
# Yuzu-cmd also needs: Video (depends on Loadso/Dlopen)
set(SDL_UNUSED_SUBSYSTEMS
- Atomic Render Power Threads
- File CPUinfo Filesystem Locale)
+ Render Power File CPUinfo
+ Filesystem Locale)
foreach(_SUB ${SDL_UNUSED_SUBSYSTEMS})
string(TOUPPER ${_SUB} _OPT)
option(SDL_${_OPT} "" OFF)