Skip to content

Commit 5826966

Browse files
committed
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
1 parent f90a214 commit 5826966

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/joystick/SDL_gamepad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ static GamepadMapping_t *SDL_PrivateMatchGamepadMappingForGUID(SDL_GUID guid, bo
958958
// An exact match, including CRC
959959
return mapping;
960960
} else if (crc && exact_match_crc) {
961-
return NULL;
961+
continue;
962962
}
963963

964964
if (!best_match) {

0 commit comments

Comments
 (0)