updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / simutrans / path-for-game-data.patch
blobd66817b1ea61407971761f3bfbc7ccce29c785ff
1 look in /usr/share/games/simutrans for game data
3 @DPATCH@
5 --- simutrans.orig/simmain.cc
6 +++ simutrans/simmain.cc
7 @@ -449,8 +449,9 @@
8 strcat( umgebung_t::program_dir, path_sep );
10 else {
11 - strcpy( umgebung_t::program_dir, argv[0] );
12 - *(strrchr( umgebung_t::program_dir, path_sep[0] )+1) = 0;
13 + // strcpy( umgebung_t::program_dir, argv[0] );
14 + // *(strrchr( umgebung_t::program_dir, path_sep[0] )+1) = 0;
15 + strcpy(umgebung_t::program_dir, "/usr/share/games/simutrans/");
17 chdir( umgebung_t::program_dir );