mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-15 16:41:22 +00:00
in_sdl.c: fix spurious "-1 mappings loaded from gamecontrollerdb.txt" message
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1294 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
cd20d45ce4
commit
fa5f3b3b8a
1 changed files with 2 additions and 2 deletions
|
@ -286,7 +286,7 @@ void IN_StartupJoystick (void)
|
|||
// Load additional SDL2 controller definitions from gamecontrollerdb.txt
|
||||
q_snprintf (controllerdb, sizeof(controllerdb), "%s/gamecontrollerdb.txt", com_basedir);
|
||||
nummappings = SDL_GameControllerAddMappingsFromFile(controllerdb);
|
||||
if (nummappings)
|
||||
if (nummappings > 0)
|
||||
Con_Printf("%d mappings loaded from gamecontrollerdb.txt\n", nummappings);
|
||||
|
||||
// Also try host_parms->userdir
|
||||
|
@ -294,7 +294,7 @@ void IN_StartupJoystick (void)
|
|||
{
|
||||
q_snprintf (controllerdb, sizeof(controllerdb), "%s/gamecontrollerdb.txt", host_parms->userdir);
|
||||
nummappings = SDL_GameControllerAddMappingsFromFile(controllerdb);
|
||||
if (nummappings)
|
||||
if (nummappings > 0)
|
||||
Con_Printf("%d mappings loaded from gamecontrollerdb.txt\n", nummappings);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue