Abstract SDL success/failure checks inside a compat macro

This commit is contained in:
Cameron Gutman
2025-01-30 23:36:46 -06:00
parent 3a22a01aef
commit 5290305944
8 changed files with 15 additions and 13 deletions

View File

@@ -904,7 +904,7 @@ QString SdlInputHandler::getUnmappedGamepads()
{
QString ret;
if (SDL_InitSubSystem(SDL_INIT_GAMECONTROLLER) != 0) {
if (SDLC_FAILURE(SDL_InitSubSystem(SDL_INIT_GAMECONTROLLER))) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
"SDL_InitSubSystem(SDL_INIT_GAMECONTROLLER) failed: %s",
SDL_GetError());