summarylogtreecommitdiffstats
path: root/path-for-game-data.patch
diff options
context:
space:
mode:
authorRoboron30422022-03-04 06:00:07 +0100
committerRoboron30422022-03-04 06:00:07 +0100
commit4547a42c92b7e0cc27730aa5cd693f22d0eed340 (patch)
tree963d58a7db1d73c2b4be1922342c93bd97dc335d /path-for-game-data.patch
parent37aac088f2890bbe8be5f59f4825750ca9f12016 (diff)
downloadaur-4547a42c92b7e0cc27730aa5cd693f22d0eed340.tar.gz
nightly build r10529
Diffstat (limited to 'path-for-game-data.patch')
-rw-r--r--path-for-game-data.patch28
1 files changed, 0 insertions, 28 deletions
diff --git a/path-for-game-data.patch b/path-for-game-data.patch
deleted file mode 100644
index b341ada1a19..00000000000
--- a/path-for-game-data.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-Index: simmain.cc
-===================================================================
---- src/simutrans/simmain.cc (revisiĆ³n: 9320)
-+++ src/simutrans/simmain.cc (copia de trabajo)
-@@ -428,6 +428,11 @@
-
- env_t::init();
-
-+ // Make simutrans re-symlinks the files when opened
-+#ifdef __linux__
-+ system("\cp -rs --remove-destination /usr/share/games/simutrans/ ~/.local/share/");
-+#endif
-+
- // you really want help with this?
- if (gimme_arg(argc, argv, "-h", 0) ||
- gimme_arg(argc, argv, "-?", 0) ||
-@@ -515,8 +520,9 @@
- strcat( env_t::data_dir, PATH_SEPARATOR );
- }
- else {
-- strcpy( env_t::data_dir, argv[0] );
-- *(strrchr( env_t::data_dir, PATH_SEPARATOR[0] )+1) = 0;
-+ static char buffer[100];
-+ sprintf(buffer, "%s/.local/share/simutrans/", getenv("HOME"));
-+ strcpy(env_t::data_dir, buffer);
-
- #ifdef __APPLE__
- // change working directory from binary dir to bundle dir