mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-20 13:06:05 +00:00
Temporarily disable joystick GUID CRCs
This commit is contained in:
parent
3d516b841a
commit
9a01eac57d
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue