diff --git a/src/client/input/sdl.c b/src/client/input/sdl.c index 87da77b6..c97fd0a5 100644 --- a/src/client/input/sdl.c +++ b/src/client/input/sdl.c @@ -1285,7 +1285,7 @@ IN_Init(void) { for (const char* rawPath = FS_GetNextRawPath(NULL); rawPath != NULL; rawPath = FS_GetNextRawPath(rawPath)) { - snprintf(controllerdb, MAX_OSPATH, "%s/%s", rawPath, "gamecontrollerdb.txt"); + snprintf(controllerdb, MAX_OSPATH, "%s/gamecontrollerdb.txt", rawPath); nummappings = SDL_GameControllerAddMappingsFromFile(controllerdb); if (nummappings > 0) Com_Printf ("%d mappings loaded from gamecontrollerdb.txt\n", nummappings);