diff options
author | Timo Wilken | 2024-05-18 17:47:10 +0200 |
---|---|---|
committer | Timo Wilken | 2024-05-18 17:47:57 +0200 |
commit | 75ec2d1e8bc6051ea8a65d2b48ce4e1eb47ca932 (patch) | |
tree | 73dd81e682bfe6441967e23f059fa4c9c36180f1 /tw/packages/files/simutrans-paths.patch | |
parent | 38cda3ebdc3e212a6405b8b32d229ea04a2fcd0d (diff) |
Update Simutrans and pak128 to 124.0 and 2.9
This Simutrans version now uses the XDG standard by default.
Diffstat (limited to 'tw/packages/files/simutrans-paths.patch')
-rw-r--r-- | tw/packages/files/simutrans-paths.patch | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tw/packages/files/simutrans-paths.patch b/tw/packages/files/simutrans-paths.patch deleted file mode 100644 index bfc0db4a..00000000 --- a/tw/packages/files/simutrans-paths.patch +++ /dev/null @@ -1,18 +0,0 @@ -This patch stores user-specific config in $XDG_CONFIG_HOME/simutrans -rather than ~/simutrans. - ---- a/sys/simsys.cc 2022-09-25 01:36:18.951636483 +0200 -+++ b/sys/simsys.cc 2022-09-25 01:36:44.615457050 +0200 -@@ -395,7 +395,11 @@ - #elif defined __ANDROID__ - tstrncpy(buffer,SDL_GetPrefPath("Simutrans Team","simutrans"),lengthof(buffer)); - #else -- sprintf(buffer, "%s/simutrans", getenv("HOME")); -+ if (getenv("XDG_CONFIG_HOME") == NULL) { -+ sprintf(buffer, "%s/.config/simutrans", getenv("HOME")); -+ } else { -+ sprintf(buffer, "%s/simutrans", getenv("XDG_CONFIG_HOME")); -+ } - #endif - - // create directory and subdirectories |