summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-12-12 17:37:31 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2022-12-12 17:37:55 +0100
commit3e1e6c66c0e31900d2fd9fb75d231542dfd58093 (patch)
treebe93477bc479158f66a4f68b933881ec6213b7db
parentMerge pull request #9420 from liamwhite/aniso (diff)
downloadyuzu-3e1e6c66c0e31900d2fd9fb75d231542dfd58093.tar
yuzu-3e1e6c66c0e31900d2fd9fb75d231542dfd58093.tar.gz
yuzu-3e1e6c66c0e31900d2fd9fb75d231542dfd58093.tar.bz2
yuzu-3e1e6c66c0e31900d2fd9fb75d231542dfd58093.tar.lz
yuzu-3e1e6c66c0e31900d2fd9fb75d231542dfd58093.tar.xz
yuzu-3e1e6c66c0e31900d2fd9fb75d231542dfd58093.tar.zst
yuzu-3e1e6c66c0e31900d2fd9fb75d231542dfd58093.zip
Diffstat (limited to '')
-rw-r--r--src/input_common/drivers/sdl_driver.cpp2
1 files changed, 2 insertions, 0 deletions
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<u8, 16> 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