mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03: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:
@@ -172,8 +172,7 @@ void PLATFORM_getOSDirectory(char* output)
|
|||||||
strcat(output, "/VVVVVV/");
|
strcat(output, "/VVVVVV/");
|
||||||
}
|
}
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
strcpy(output, PHYSFS_getUserDir());
|
strcpy(output, PHYSFS_getPrefDir("distractionware", "VVVVVV"));
|
||||||
strcat(output, "Library/Application Support/VVVVVV/");
|
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, output);
|
SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, output);
|
||||||
strcat(output, "\\VVVVVV\\");
|
strcat(output, "\\VVVVVV\\");
|
||||||
|
|||||||
Reference in New Issue
Block a user