From 3e1e6c66c0e31900d2fd9fb75d231542dfd58093 Mon Sep 17 00:00:00 2001 From: Narr the Reg Date: Mon, 12 Dec 2022 10:37:31 -0600 Subject: input_common: Filter SDL GUID --- src/input_common/drivers/sdl_driver.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/input_common/drivers/sdl_driver.cpp') diff --git a/src/input_common/drivers/sdl_driver.cpp b/src/input_common/drivers/sdl_driver.cpp index 8de86b61e..4818bb744 100644 --- a/src/input_common/drivers/sdl_driver.cpp +++ b/src/input_common/drivers/sdl_driver.cpp @@ -16,6 +16,8 @@ Common::UUID GetGUID(SDL_Joystick* joystick) { const SDL_JoystickGUID guid = SDL_JoystickGetGUID(joystick); std::array data{}; std::memcpy(data.data(), guid.data, sizeof(data)); + // Clear controller name crc + std::memset(data.data() + 2, 0, sizeof(u16)); return Common::UUID{data}; } } // Anonymous namespace -- cgit v1.2.3