PKGBUILDs/community/simutrans/path-for-game-data.patch

19 lines
536 B
Diff
Raw Normal View History

2013-05-22 01:46:21 +00:00
look in /usr/share/games/simutrans for game data
@DPATCH@
--- simutrans.orig/simmain.cc
+++ simutrans/simmain.cc
@@ -437,8 +437,9 @@
2014-05-09 13:22:29 +00:00
strcat( env_t::program_dir, path_sep );
2013-05-22 01:46:21 +00:00
}
else {
2014-05-09 13:22:29 +00:00
- strcpy( env_t::program_dir, argv[0] );
- *(strrchr( env_t::program_dir, path_sep[0] )+1) = 0;
+ // strcpy( env_t::program_dir, argv[0] );
+ // *(strrchr( env_t::program_dir, path_sep[0] )+1) = 0;
+ strcpy(env_t::program_dir, "/usr/share/games/simutrans/");
2013-05-22 01:46:21 +00:00
2014-05-09 13:22:29 +00:00
#ifdef __APPLE__
// change working directory from binary dir to bundle dir