diff options
Diffstat (limited to 'path-for-game-data.patch')
-rw-r--r-- | path-for-game-data.patch | 20 |
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 |