summaryrefslogtreecommitdiff
blob: 4328ea8523e2f2190b176987c2bd54c9b878f88a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff -ur NPRQuake-SDL.orig/NPRQuakeSrc/common.c NPRQuake-SDL/NPRQuakeSrc/common.c
--- NPRQuake-SDL.orig/NPRQuakeSrc/common.c	2003-09-28 20:09:29.140832648 -0400
+++ NPRQuake-SDL/NPRQuakeSrc/common.c	2003-09-28 20:09:29.525774128 -0400
@@ -1775,11 +1775,16 @@
 // start up with GAMENAME by default (id1)
 //
 	COM_AddGameDirectory (va("%s/"GAMENAME, basedir) );
+	COM_AddGameDirectory (GENTOO_DATADIR"/"GAMENAME);
 
-	if (COM_CheckParm ("-rogue"))
+	if (COM_CheckParm ("-rogue")) {
 		COM_AddGameDirectory (va("%s/rogue", basedir) );
-	if (COM_CheckParm ("-hipnotic"))
+		COM_AddGameDirectory (GENTOO_DATADIR"/rogue");
+	}
+	if (COM_CheckParm ("-hipnotic")) {
 		COM_AddGameDirectory (va("%s/hipnotic", basedir) );
+		COM_AddGameDirectory (GENTOO_DATADIR"/hipnotic");
+	}
 
 //
 // -game <gamedir>
@@ -1790,6 +1795,7 @@
 	{
 		com_modified = true;
 		COM_AddGameDirectory (va("%s/%s", basedir, com_argv[i+1]));
+		COM_AddGameDirectory (va(GENTOO_DATADIR"/%s", com_argv[i+1]));
 	}
 
 //