diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-12-12 23:34:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 23:34:11 +0100 |
commit | b32b9524ad4c354f12ebc13a38cb16c4be66b7c7 (patch) | |
tree | be93477bc479158f66a4f68b933881ec6213b7db | |
parent | Merge pull request #9420 from liamwhite/aniso (diff) | |
parent | input_common: Filter SDL GUID (diff) | |
download | yuzu-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.cpp | 2 |
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 |