| Summary: | Return value of SDL_GameControllerAddMappingsFromFile doesn't count mappings for certain GUIDs | ||
|---|---|---|---|
| Product: | SDL | Reporter: | PkR <anzuameti> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | minor | ||
| Priority: | P4 | ||
| Version: | 2.0.12 | ||
| Hardware: | x86 | ||
| OS: | Windows 10 | ||
|
Description
PkR
2020-04-24 22:04:41 UTC
I tested the project with different versions of SDL and it seems to work with versions 2.0.8 and below. 2.0.9 and above are affected by this issue. To add to the previous comment, it looks like the issue only affects the function's return value, the mappings themselves are actually loaded. It only doesn't count the mapping strings with such GUIDs. If there are such strings in the text file, the return value is lower than the number of loaded controller mappings. It returns 0 if all GUIDs in the text file are "wrong". SDL 2.0.8 and below aren't affected by this. |