mirror of https://github.com/libsdl-org/SDL.git
Fixed replacing existing specific gamepad mappings
If the first mapping we see doesn't have a CRC, continue looking for another exact CRC match. Fixes testautomation --filter TestVirtualJoystick
This commit is contained in:
parent
f90a21483c
commit
5826966873
|
|
@ -958,7 +958,7 @@ static GamepadMapping_t *SDL_PrivateMatchGamepadMappingForGUID(SDL_GUID guid, bo
|
||||||
// An exact match, including CRC
|
// An exact match, including CRC
|
||||||
return mapping;
|
return mapping;
|
||||||
} else if (crc && exact_match_crc) {
|
} else if (crc && exact_match_crc) {
|
||||||
return NULL;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!best_match) {
|
if (!best_match) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue