summaryrefslogtreecommitdiff
path: root/community/simutrans/path-for-game-data.patch
blob: ac2b4140776a0ee64e37ff64e8319784ba78bd5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
look in /usr/share/games/simutrans for game data

@DPATCH@

--- simutrans.orig/simmain.cc
+++ simutrans/simmain.cc
@@ -437,8 +437,9 @@
 		strcat( umgebung_t::program_dir, path_sep );
 	}
 	else {
-		strcpy( umgebung_t::program_dir, argv[0] );
-		*(strrchr( umgebung_t::program_dir, path_sep[0] )+1) = 0;
+		// strcpy( umgebung_t::program_dir, argv[0] );
+		// *(strrchr( umgebung_t::program_dir, path_sep[0] )+1) = 0;
+		strcpy(umgebung_t::program_dir, "/usr/share/games/simutrans/");
 
 		chdir( umgebung_t::program_dir );
 	}