diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index 7f37a70e..69b0cf75 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -98,6 +98,13 @@ int FILESYSTEM_init(char *argvZero) ); return 0; } + + strcpy(output, PHYSFS_getBaseDir()); + strcpy(output, "gamecontrollerdb.txt"); + if (SDL_GameControllerAddMappingsFromFile(output) < 0) + { + printf("gamecontrollerdb.txt not found!\n"); + } return 1; }