1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 09:39:43 +01:00

Do not use deprecated PHYSFS_getUserDir on macOS

Instead use PHYSFS_getPrefDir which does the same than the manual
concatenation done before. The organization name argument is required
but is not used on macOS.
This commit is contained in:
Marvin Scholz 2020-01-10 23:48:49 +01:00 committed by Ethan Lee
parent 146cdde217
commit 5c9c7297ed

View file

@ -172,8 +172,7 @@ void PLATFORM_getOSDirectory(char* output)
strcat(output, "/VVVVVV/");
}
#elif defined(__APPLE__)
strcpy(output, PHYSFS_getUserDir());
strcat(output, "Library/Application Support/VVVVVV/");
strcpy(output, PHYSFS_getPrefDir("distractionware", "VVVVVV"));
#elif defined(_WIN32)
SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, output);
strcat(output, "\\VVVVVV\\");