1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 22:18:30 +02:00

Fix gamecontrollerdb.txt path

This commit is contained in:
Ethan Lee 2020-06-23 19:08:08 -04:00
parent 94a67ca0aa
commit 9804fbc383

View File

@ -122,8 +122,7 @@ int FILESYSTEM_init(char *argvZero, char* baseDir, char *assetsPath)
return 0;
}
strcpy(output, PHYSFS_getBaseDir());
strcpy(output, "gamecontrollerdb.txt");
SDL_snprintf(output, sizeof(output), "%s%s", PHYSFS_getBaseDir(), "gamecontrollerdb.txt");
if (SDL_GameControllerAddMappingsFromFile(output) < 0)
{
printf("gamecontrollerdb.txt not found!\n");