summaryrefslogtreecommitdiff
blob: 263aa58666b683a0879a101e00a3d2f97a9db492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- source/unix/sys_unix.c	2007-06-14 13:15:32.834511771 -0400
+++ source/unix/sys_unix.c	2007-06-14 13:16:54.505565372 -0400
@@ -234,7 +234,7 @@
 		path = FS_NextPath (path);
 		if (!path)
 			return NULL;		// couldn't find one anywhere
-		snprintf (name, MAX_OSPATH, "%s/%s", path, gamename);
+		snprintf (name, MAX_OSPATH, "%s/%s", "GENTOO_LIBDIR", gamename);
 
 		/* skip it if it just doesn't exist */
 		fp = fopen(name, "rb");
@@ -308,6 +308,7 @@
 	saved_euid = geteuid();
 	seteuid(getuid());
 
+	chdir("GENTOO_DATADIR");
 	Qcommon_Init(argc, argv);
 
 	fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);