Skip to content

Commit

Permalink
Merge pull request #435 from shinra-electric/mac-use-application-support
Browse files Browse the repository at this point in the history
Requires Testing - [macOS] Use the Application Support folder for game data
  • Loading branch information
timfel authored Mar 14, 2023
2 parents 064c23c + 9b0c04d commit 8720f1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gameheaders/stratagus-game-launcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ static void SetUserDataPath(char* data_path) {
if (dataDir) {
strcpy(data_path, dataDir);
#ifdef USE_MAC
strcat(data_path, "/Library/Stratagus/");
strcat(data_path, "/Library/Application\ Support/Stratagus/");
#else
strcat(data_path, "/.local/share/stratagus/");
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/stratagus/parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void Parameters::SetDefaultUserDirectory(bool noPortable)
configDir = getenv("HOME");
if (configDir) {
#ifdef USE_MAC
userDirectory = std::string(configDir) + "/Library/Stratagus";
userDirectory = std::string(configDir) + "/Library/Application\ Support/Stratagus";
#else
userDirectory = std::string(configDir) + "/.config/stratagus";
#endif // USE_MAC
Expand Down

0 comments on commit 8720f1f

Please sign in to comment.