Skip to content

Conversation

@Spodi
Copy link
Contributor

@Spodi Spodi commented Dec 31, 2025

  • Fixes crash when SDL_GameControllerName returns NULL #976
  • Uses the GUID as name instead, if that is the case:
    531769358-fa077d06-701a-4cce-895c-48ce356790d9
  • Adds error checking at multiple points of failure and skips the device if any of them occur, because it's most likely unusable in those cases.
  • Add logging for the errors catched above

LUS bump PRs for ports:

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

@Spodi
Copy link
Contributor Author

Spodi commented Jan 2, 2026

Urg, that's what I get for trying to fix formatting on my phone. Lol.

@Spodi Spodi force-pushed the fix-SDL_GameControllerName-NULL branch from 1bc6ac8 to 039d543 Compare January 2, 2026 15:29
@github-actions github-actions bot dismissed their stale review January 2, 2026 15:31

No Clang-Tidy warnings found so I assume my comments were addressed

Spodi added 3 commits January 5, 2026 00:35
00000000000000000000000000000000 should be displayed if the GUID is invalid as well.
This likely happens due to an invalid index, so the device is most likely invalid anyway.
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

Sometimes I wish, I never fixed this thing :D

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions github-actions bot dismissed their stale review January 5, 2026 12:12

No Clang-Tidy warnings found so I assume my comments were addressed

@briaguya0 briaguya0 changed the title Fix crash when SDL_GameControllerName returns NULL add error handling to ConnectedPhysicalDeviceManager::RefreshConnectedSDLGamepads Jan 5, 2026
@briaguya0 briaguya0 merged commit e288c95 into Kenix3:main Jan 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

crash when SDL_GameControllerName returns NULL

2 participants