archrelease: copy trunk to community-any
[ArchLinux/community.git] / simutrans / repos / community-x86_64 / path-for-game-data.patch
blob669a0183dc58ccce166268cd3be58cb3f8fe6783
1 look in /usr/share/games/simutrans for game data
3 @DPATCH@
5 --- simutrans.orig/simmain.cc
6 +++ simutrans/simmain.cc
7 @@ -437,8 +437,7 @@
8 strcat( env_t::data_dir, PATH_SEPARATOR );
10 else {
11 - strcpy( env_t::data_dir, argv[0] );
12 - *(strrchr( env_t::data_dir, PATH_SEPARATOR[0] )+1) = 0;
13 + strcpy(env_t::data_dir, "/usr/share/games/simutrans/");
15 #ifdef __APPLE__
16 // change working directory from binary dir to bundle dir