Use Application Support folder for Mac

Stratagus currently puts data files in `~/Library/`, but it should use `~/Library/Application\ Support/`
This commit is contained in:
shinra-electric 2023-03-08 22:38:50 +01:00 committed by GitHub
parent 38c3b78bb5
commit 9b0c04dee3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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