summarylogtreecommitdiffstats
path: root/path-for-game-data.patch
diff options
context:
space:
mode:
authorRoboron30422020-09-02 20:00:36 +0200
committerRoboron30422020-09-02 20:00:36 +0200
commit1ac46b18ce41d90f95c5ef72c42284cde462137a (patch)
tree54137ff290b338adc7da6ce1d4b870c82dbc778e /path-for-game-data.patch
parent73529429cc24eaa3859d2df1d51c2fafb9c6e4ae (diff)
downloadaur-1ac46b18ce41d90f95c5ef72c42284cde462137a.tar.gz
nightly build 20200902
Diffstat (limited to 'path-for-game-data.patch')
-rw-r--r--path-for-game-data.patch20
1 files changed, 11 insertions, 9 deletions
diff --git a/path-for-game-data.patch b/path-for-game-data.patch
index 6aeeaee5541d..4ab0b4942ac9 100644
--- a/path-for-game-data.patch
+++ b/path-for-game-data.patch
@@ -1,18 +1,20 @@
---- simmain.cc.orig 2020-02-06 20:30:33.480323954 +0100
-+++ simmain.cc 2020-02-06 20:32:05.704175036 +0100
-@@ -419,6 +419,11 @@
-
+--- simmain.cc.orig 2020-08-31 22:02:10.283408370 +0200
++++ simmain.cc 2020-08-31 22:07:57.497785796 +0200
+@@ -428,6 +428,13 @@
+
env_t::init();
-
+
++ // Make simutrans re-symlinks the files when opened
+#ifdef __linux__
-+ system("\cp -rs --remove-destination /usr/share/games/simutrans/ ~/.local/share/");
++ system("\cp --remove-destination ~/.local/share/simutrans/config/simuconf.tab ~/.local/share/simutrans/config/simuconf-backup.tab");
++ system("\cp -rs --remove-destination /usr/share/games/simutrans/ ~/.local/share/");
++ system("\cp --remove-destination ~/.local/share/simutrans/config/simuconf-backup.tab ~/.local/share/simutrans/config/simuconf.tab");
+#endif
-+
++
// you really want help with this?
if (gimme_arg(argc, argv, "-h", 0) ||
gimme_arg(argc, argv, "-?", 0) ||
-@@ -503,8 +508,9 @@
+@@ -513,8 +520,9 @@
strcat( env_t::program_dir, PATH_SEPARATOR );
}
else {
@@ -21,6 +23,6 @@
+ static char buffer[100];
+ sprintf(buffer, "%s/.local/share/simutrans/", getenv("HOME"));
+ strcpy(env_t::program_dir, buffer);
-
+
#ifdef __APPLE__
// change working directory from binary dir to bundle dir