diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-08-14 20:48:17 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-08-14 20:48:17 +0000 |
commit | 08aaf3c6b0886d9fcb37e5333cc7acae664012c7 (patch) | |
tree | 1e75accc650fa69a7a884ceb67b56963cb090eaf /games/quetoo | |
parent | c8eaf62a8576ce894a03663721ff91d4acf606b4 (diff) | |
download | ports-08aaf3c6b0886d9fcb37e5333cc7acae664012c7.tar.gz ports-08aaf3c6b0886d9fcb37e5333cc7acae664012c7.zip |
Notes
Diffstat (limited to 'games/quetoo')
-rw-r--r-- | games/quetoo/files/patch-src__files.c | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/games/quetoo/files/patch-src__files.c b/games/quetoo/files/patch-src__files.c new file mode 100644 index 000000000000..16f631de003b --- /dev/null +++ b/games/quetoo/files/patch-src__files.c @@ -0,0 +1,60 @@ +--- src/files.c.orig Thu Jun 22 00:26:09 2006 ++++ src/files.c Thu Jul 27 17:22:54 2006 +@@ -490,8 +490,9 @@ + Cvar_FullSet("gamedir", dir, CVAR_SERVERINFO | CVAR_NOSET); + if(fs_cddir->string[0]) + FS_AddGameDirectory(va("%s/%s", fs_cddir->string, dir)); +- FS_AddGameDirectory(va(PKGLIBDIR"/%s", dir)); + FS_AddGameDirectory(va(PKGDATADIR"/%s", dir)); ++ FS_AddGameDirectory(va(PKGLIBDIR"/%s", dir)); ++ FS_AddGameDirectory(va("%s/%s", fs_basedir->string, dir)); + FS_AddHomeAsGameDirectory(dir); + } + } +@@ -682,20 +683,13 @@ + Cmd_AddCommand("path", FS_Path_f); + Cmd_AddCommand("link", FS_Link_f); + Cmd_AddCommand("dir", FS_Dir_f); +- ++ + // + // basedir <path> + // allows the game to run from outside the data tree + // + fs_basedir = Cvar_Get("basedir", ".", CVAR_NOSET); +- +- //export q2 home, adding it to search path if necessary +- if(fs_basedir->string && strcmp(fs_basedir->string, ".")){ +- setenv("QUAKE2_HOME", fs_basedir->string, 0); +- FS_AddGameDirectory(fs_basedir->string); +- } +- else setenv("QUAKE2_HOME", PKGDATADIR, 0); +- ++ + // + // cddir <path> + // Logically concatenates the cddir after the basedir for +@@ -704,13 +698,20 @@ + fs_cddir = Cvar_Get("cddir", "", CVAR_NOSET); + if(fs_cddir->string[0]) + FS_AddGameDirectory(va("%s/"BASEDIRNAME, fs_cddir->string)); +- ++ + // + // add baseq2 to search path + // +- FS_AddGameDirectory(PKGLIBDIR"/"BASEDIRNAME); + FS_AddGameDirectory(PKGDATADIR"/"BASEDIRNAME); +- ++ FS_AddGameDirectory(PKGLIBDIR"/"BASEDIRNAME); ++ ++ //export q2 home, adding it to search path if necessary ++ if(fs_basedir->string && strcmp(fs_basedir->string, ".")){ ++ setenv("QUAKE2_HOME", fs_basedir->string, 0); ++ FS_AddGameDirectory(fs_basedir->string); ++ } ++ else setenv("QUAKE2_HOME", PKGDATADIR, 0); ++ + // + // then add a '.quake2/baseq2' directory in home directory by default + // |