1 |
tupone 08/10/04 19:46:07 |
2 |
|
3 |
Added: ufo-ai-2.2.1-gentoo.patch |
4 |
Log: |
5 |
Version bump to 2.2.1 Bug #206145 by Jaak Ristioja |
6 |
(Portage version: 2.1.4.4) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 games-strategy/ufo-ai/files/ufo-ai-2.2.1-gentoo.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/ufo-ai/files/ufo-ai-2.2.1-gentoo.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/ufo-ai/files/ufo-ai-2.2.1-gentoo.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: ufo-ai-2.2.1-gentoo.patch |
15 |
=================================================================== |
16 |
--- src/common/files.c.old 2008-10-04 18:09:14.000000000 +0200 |
17 |
+++ src/common/files.c 2008-10-04 18:10:45.000000000 +0200 |
18 |
@@ -889,7 +889,7 @@ |
19 |
|
20 |
/* basedir <path> */ |
21 |
/* allows the game to run from outside the data tree */ |
22 |
- fs_basedir = Cvar_Get("fs_basedir", ".", CVAR_NOSET, "Allows the game to run from outside the data tree"); |
23 |
+ fs_basedir = Cvar_Get("fs_basedir", "@GENTOO_DATADIR@", CVAR_NOSET, "Allows the game to run from outside the data tree"); |
24 |
|
25 |
/* start up with base by default */ |
26 |
FS_AddGameDirectory(va("%s/" BASEDIRNAME, fs_basedir->string)); |
27 |
--- src/tools/gtkradiant/games/ufoai.game.old 2008-10-04 18:22:56.000000000 +0200 |
28 |
+++ src/tools/gtkradiant/games/ufoai.game 2008-10-04 18:23:28.000000000 +0200 |
29 |
@@ -3,7 +3,7 @@ |
30 |
type="q2" |
31 |
name="UFO:Alien Invasion" |
32 |
enginepath_win32="c:/ufoai/" |
33 |
- enginepath_linux="/usr/local/games/ufoai/" |
34 |
+ enginepath_linux="@GENTOO_DATADIR@" |
35 |
enginepath_macos="/Applications/UFOAI/" |
36 |
engine_win32="ufo.exe" |
37 |
engine_linux="ufo" |
38 |
--- src/client/cl_main.c.old 2008-10-04 18:24:57.000000000 +0200 |
39 |
+++ src/client/cl_main.c 2008-10-04 18:26:05.000000000 +0200 |
40 |
@@ -2506,7 +2506,7 @@ |
41 |
if (*fs_i18ndir->string) |
42 |
Q_strncpyz(languagePath, fs_i18ndir->string, sizeof(languagePath)); |
43 |
else |
44 |
- Com_sprintf(languagePath, sizeof(languagePath), "%s/"BASEDIRNAME"/i18n/", FS_GetCwd()); |
45 |
+ Com_sprintf(languagePath, sizeof(languagePath), "%s/"BASEDIRNAME"/i18n/", "@GENTOO_DATADIR@"); |
46 |
Com_DPrintf(DEBUG_CLIENT, "...using mo files from %s\n", languagePath); |
47 |
bindtextdomain(TEXT_DOMAIN, languagePath); |
48 |
bind_textdomain_codeset(TEXT_DOMAIN, "UTF-8"); |
49 |
--- src/client/cl_language.c.old 2008-10-04 18:27:17.000000000 +0200 |
50 |
+++ src/client/cl_language.c 2008-10-04 19:03:04.000000000 +0200 |
51 |
@@ -133,7 +133,7 @@ |
52 |
if (*fs_i18ndir->string) |
53 |
Q_strncpyz(languagePath, fs_i18ndir->string, sizeof(languagePath)); |
54 |
else |
55 |
- Com_sprintf(languagePath, sizeof(languagePath), "%s/"BASEDIRNAME"/i18n/", FS_GetCwd()); |
56 |
+ Com_sprintf(languagePath, sizeof(languagePath), "%s/"BASEDIRNAME"/i18n/", "@GENTOO_DATADIR@"); |
57 |
Com_DPrintf(DEBUG_CLIENT, "CL_LanguageTest()... using mo files from '%s'\n", languagePath); |
58 |
Q_strcat(languagePath, localeID, sizeof(languagePath)); |
59 |
Q_strcat(languagePath, "/LC_MESSAGES/ufoai.mo", sizeof(languagePath)); |