diff --git a/source/common/platform/posix/osx/i_specialpaths.mm b/source/common/platform/posix/osx/i_specialpaths.mm index d51bd4ca5..872076819 100644 --- a/source/common/platform/posix/osx/i_specialpaths.mm +++ b/source/common/platform/posix/osx/i_specialpaths.mm @@ -71,17 +71,17 @@ void M_GetMacSearchDirectories(FString& user_docs, FString& user_app_support, FS ? "~/" GAME_DIR : (path + "/" GAME_DIR); -#define LIBRARY_APPSUPPORT "/Library/Application Support/" +#define LIBRARY_APPSUPPORT "/Library/Application Support" path = M_GetMacAppSupportPath(); user_app_support = path.IsEmpty() - ? "~" LIBRARY_APPSUPPORT GAME_DIR - : (path + "/" GAME_DIR); + ? "~" LIBRARY_APPSUPPORT + : (path); path = GetSpecialPath(NSApplicationSupportDirectory, YES, NSLocalDomainMask); local_app_support = path.IsEmpty() - ? LIBRARY_APPSUPPORT GAME_DIR - : (path + "/" GAME_DIR); + ? LIBRARY_APPSUPPORT + : (path); #undef LIBRARY_APPSUPPORT } diff --git a/source/core/gameconfigfile.cpp b/source/core/gameconfigfile.cpp index 68e63b9c9..de8df7921 100644 --- a/source/core/gameconfigfile.cpp +++ b/source/core/gameconfigfile.cpp @@ -83,6 +83,7 @@ FGameConfigFile::FGameConfigFile () SetValueForKey ("Path", user_app_support + "/EDuke32", true); SetValueForKey ("Path", user_app_support + "/JFDuke32", true); SetValueForKey ("Path", user_app_support + "/NBlood", true); + SetValueForKey("Path", user_app_support + "/Raze/*", true); SetValueForKey ("Path", "$PROGDIR", true); SetValueForKey ("Path", "$PROGDIR/*", true); SetValueForKey ("Path", local_app_support + "/EDuke32", true); @@ -125,9 +126,9 @@ FGameConfigFile::FGameConfigFile () SetSection ("FileSearch.Directories", true); #ifdef __APPLE__ SetValueForKey ("Path", user_docs, true); - SetValueForKey ("Path", user_app_support, true); + SetValueForKey ("Path", user_app_support + "/" GAME_DIR, true); SetValueForKey ("Path", "$PROGDIR", true); - SetValueForKey ("Path", local_app_support, true); + SetValueForKey ("Path", local_app_support + "/" GAME_DIR, true); #elif !defined(__unix__) SetValueForKey ("Path", "$PROGDIR", true); SetValueForKey ("Path", "$GAMEDIR", true); @@ -149,9 +150,9 @@ FGameConfigFile::FGameConfigFile () SetSection("SoundfontSearch.Directories", true); #ifdef __APPLE__ SetValueForKey("Path", user_docs + "/soundfonts", true); - SetValueForKey("Path", user_app_support + "/soundfonts", true); + SetValueForKey("Path", user_app_support + "/" GAME_DIR "/soundfonts", true); SetValueForKey("Path", "$PROGDIR/soundfonts", true); - SetValueForKey("Path", local_app_support + "/soundfonts", true); + SetValueForKey("Path", local_app_support + "/" GAME_DIR "/soundfonts", true); #elif !defined(__unix__) SetValueForKey("Path", "$PROGDIR/soundfonts", true); #else