diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-07-29 19:59:36 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-07-29 19:59:36 +0000 |
commit | cba93ee80a9c660bc483e5f574485f0b10efb3b1 (patch) | |
tree | 78e2d9f574492ceb7bd3ac42cea20a611b694246 /games/qudos/files | |
parent | a7ed23ba92f8f40e14f1ccb2c974cd028e3bf999 (diff) | |
download | ports-cba93ee80a9c660bc483e5f574485f0b10efb3b1.tar.gz ports-cba93ee80a9c660bc483e5f574485f0b10efb3b1.zip |
Notes
Diffstat (limited to 'games/qudos/files')
-rw-r--r-- | games/qudos/files/patch-src__qcommon__files.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/games/qudos/files/patch-src__qcommon__files.c b/games/qudos/files/patch-src__qcommon__files.c new file mode 100644 index 000000000000..7cc749e0ebc5 --- /dev/null +++ b/games/qudos/files/patch-src__qcommon__files.c @@ -0,0 +1,34 @@ +--- src/qcommon/files.c.orig Fri Jun 2 12:50:53 2006 ++++ src/qcommon/files.c Thu Jul 27 17:11:03 2006 +@@ -1377,6 +1377,9 @@ + Cvar_FullSet("gamedir", dir, CVAR_SERVERINFO | CVAR_NOSET); + if (fs_cddir->string[0] == '\0') + FS_AddGameDirectory(va("%s/%s", fs_cddir->string, dir)); ++#ifdef DATADIR ++ FS_AddGameDirectory(va("%s/%s", DATADIR, dir)); ++#endif + #ifdef LIBDIR + FS_AddGameDirectory(va("%s/%s", LIBDIR, dir)); + #endif +@@ -1707,11 +1710,7 @@ + /* + * basedir <path> Allows the game to run from outside the data tree. + */ +-#ifdef DATADIR +- fs_basedir = Cvar_Get("basedir", DATADIR, CVAR_NOSET); +-#else + fs_basedir = Cvar_Get("basedir", ".", CVAR_NOSET); +-#endif + + /* + * cddir <path> Logically concatenates the cddir after the basedir to +@@ -1731,6 +1730,9 @@ + fs_homepath = Cvar_Get("homepath", Sys_GetCurrentDirectory(), CVAR_NOSET); + + /* Add baseq2 to search path. */ ++#ifdef DATADIR ++ FS_AddGameDirectory(va("%s/" BASEDIRNAME, DATADIR)); ++#endif + #ifdef LIBDIR + FS_AddGameDirectory(va("%s/" BASEDIRNAME, LIBDIR)); + #endif |