1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-04 04:50:22 +00:00

Change FS_GetKnownDirectory() to return "/Applications" on macOS

This commit is contained in:
a740g 2023-12-29 04:42:32 +05:30
parent 77122d475a
commit d8cb77e2d1

View file

@ -308,7 +308,11 @@ static std::string FS_GetKnownDirectory(FS_KnownDirectory kD) {
SHGetFolderPathA(NULL, CSIDL_PROGRAM_FILES | CSIDL_FLAG_CREATE, NULL, SHGFP_TYPE_CURRENT, &path[0]);
#else
if (envVar) {
# ifdef QB64_MACOSX
path.assign("/Applications");
# else
path.assign("/opt");
# endif
if (!FS_DirectoryExists(path.c_str()))
path.clear();
}
@ -324,7 +328,11 @@ static std::string FS_GetKnownDirectory(FS_KnownDirectory kD) {
# endif
#else
if (envVar) {
# ifdef QB64_MACOSX
path.assign("/Applications");
# else
path.assign("/opt");
# endif
if (!FS_DirectoryExists(path.c_str()))
path.clear();
}