summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2022-12-12 23:34:11 +0100
committerGitHub <noreply@github.com>2022-12-12 23:34:11 +0100
commitb32b9524ad4c354f12ebc13a38cb16c4be66b7c7 (patch)
treebe93477bc479158f66a4f68b933881ec6213b7db
parentMerge pull request #9420 from liamwhite/aniso (diff)
parentinput_common: Filter SDL GUID (diff)
downloadyuzu-b32b9524ad4c354f12ebc13a38cb16c4be66b7c7.tar
yuzu-b32b9524ad4c354f12ebc13a38cb16c4be66b7c7.tar.gz
yuzu-b32b9524ad4c354f12ebc13a38cb16c4be66b7c7.tar.bz2
yuzu-b32b9524ad4c354f12ebc13a38cb16c4be66b7c7.tar.lz
yuzu-b32b9524ad4c354f12ebc13a38cb16c4be66b7c7.tar.xz
yuzu-b32b9524ad4c354f12ebc13a38cb16c4be66b7c7.tar.zst
yuzu-b32b9524ad4c354f12ebc13a38cb16c4be66b7c7.zip
-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