File: datadir.patch

package info (click to toggle)
warzone2100 4.6.3-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 660,328 kB
  • sloc: cpp: 676,209; ansic: 391,201; javascript: 78,238; python: 16,632; php: 4,294; sh: 4,094; makefile: 2,629; lisp: 1,492; cs: 489; xml: 404; perl: 224; ruby: 156; java: 89
file content (18 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
From: Russell Coker

Force the search path for datadir to include /usr/share/games/warzone2100/
because I can't figure out how to do it via CMake

Index: warzone2100-4.6.1/src/main.cpp
===================================================================
--- warzone2100-4.6.1.orig/src/main.cpp
+++ warzone2100-4.6.1/src/main.cpp
@@ -644,6 +644,8 @@ static void scanDataDirs()
 		}
 	}
 #endif
+	// this is not the right solution.
+	registerSearchPath("/usr/share/games/warzone2100/", 5);
 
 #ifdef WZ_OS_MAC
 	if (!PHYSFS_exists("gamedesc.lev"))