Where does SDL2 look for gamecontrollerdb.txt?


Let’s say I have a game controller not supported in src/joystick/SDL_gamecontrollerdb.h
Let’s say I add it to a gamecontrollerdb.txt file, instead to adding it to src/joystick/SDL_gamecontrollerdb.h
Does SDL2 load gamecontrollerdb.txt automatically OR there’s a function to load it?
Where does SDL2 it look for it?


You provide the path to the file… or without a path, it gets opened in the current/working directory.

– Ed

@Ed_Phillips: is there an env variable to provide the path to the file? Or, how do I provide it? Can’t find it on the wiki/docs.