mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 09:39:43 +01:00
Load gamecontrollerdb.txt if available
This commit is contained in:
parent
6e9712f113
commit
9eebbc542e
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue