summaryrefslogtreecommitdiff
blob: 5fed2ad8a4e5d14c77b0bc2049dfefe2421ea19d (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--- src/common/files.c.old	2008-10-04 18:09:14.000000000 +0200
+++ src/common/files.c	2008-10-04 18:10:45.000000000 +0200
@@ -889,7 +889,7 @@
 
 	/* basedir <path> */
 	/* allows the game to run from outside the data tree */
-	fs_basedir = Cvar_Get("fs_basedir", ".", CVAR_NOSET, "Allows the game to run from outside the data tree");
+	fs_basedir = Cvar_Get("fs_basedir", "@GENTOO_DATADIR@", CVAR_NOSET, "Allows the game to run from outside the data tree");
 
 	/* start up with base by default */
 	FS_AddGameDirectory(va("%s/" BASEDIRNAME, fs_basedir->string));
--- src/tools/gtkradiant/games/ufoai.game.old	2008-10-04 18:22:56.000000000 +0200
+++ src/tools/gtkradiant/games/ufoai.game	2008-10-04 18:23:28.000000000 +0200
@@ -3,7 +3,7 @@
   type="q2"
   name="UFO:Alien Invasion"
   enginepath_win32="c:/ufoai/"
-  enginepath_linux="/usr/local/games/ufoai/"
+  enginepath_linux="@GENTOO_DATADIR@"
   enginepath_macos="/Applications/UFOAI/"
   engine_win32="ufo.exe"
   engine_linux="ufo"
--- src/client/cl_main.c.old	2008-10-04 18:24:57.000000000 +0200
+++ src/client/cl_main.c	2008-10-04 18:26:05.000000000 +0200
@@ -2506,7 +2506,7 @@
 	if (*fs_i18ndir->string)
 		Q_strncpyz(languagePath, fs_i18ndir->string, sizeof(languagePath));
 	else
-		Com_sprintf(languagePath, sizeof(languagePath), "%s/"BASEDIRNAME"/i18n/", FS_GetCwd());
+		Com_sprintf(languagePath, sizeof(languagePath), "%s/"BASEDIRNAME"/i18n/", "@GENTOO_DATADIR@");
 	Com_DPrintf(DEBUG_CLIENT, "...using mo files from %s\n", languagePath);
 	bindtextdomain(TEXT_DOMAIN, languagePath);
 	bind_textdomain_codeset(TEXT_DOMAIN, "UTF-8");
--- src/client/cl_language.c.old	2008-10-04 18:27:17.000000000 +0200
+++ src/client/cl_language.c	2008-10-04 19:03:04.000000000 +0200
@@ -133,7 +133,7 @@
 	if (*fs_i18ndir->string)
 		Q_strncpyz(languagePath, fs_i18ndir->string, sizeof(languagePath));
 	else
-		Com_sprintf(languagePath, sizeof(languagePath), "%s/"BASEDIRNAME"/i18n/", FS_GetCwd());
+		Com_sprintf(languagePath, sizeof(languagePath), "%s/"BASEDIRNAME"/i18n/", "@GENTOO_DATADIR@");
 	Com_DPrintf(DEBUG_CLIENT, "CL_LanguageTest()... using mo files from '%s'\n", languagePath);
 	Q_strcat(languagePath, localeID, sizeof(languagePath));
 	Q_strcat(languagePath, "/LC_MESSAGES/ufoai.mo", sizeof(languagePath));