From 9a01eac57d30fabc61b8525618449f10f86a71d2 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 26 Aug 2022 13:45:05 -0700 Subject: [PATCH] Temporarily disable joystick GUID CRCs --- src/joystick/SDL_joystick.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c index 80edea58b..a71e7a0a9 100644 --- a/src/joystick/SDL_joystick.c +++ b/src/joystick/SDL_joystick.c @@ -1984,7 +1984,11 @@ SDL_CreateJoystickGUID(Uint16 bus, Uint16 vendor, Uint16 product, Uint16 version /* We only need 16 bits for each of these; space them out to fill 128. */ /* Byteswap so devices get same GUID on little/big endian platforms. */ *guid16++ = SDL_SwapLE16(bus); +#if 1 + *guid16++ = 0; +#else *guid16++ = SDL_SwapLE16(SDL_crc16(0, name, SDL_strlen(name))); +#endif if (vendor && product) { *guid16++ = SDL_SwapLE16(vendor);