aboutsummaryrefslogtreecommitdiff
path: root/games/r1q2/files/patch-linux__vid_so.c
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2006-12-22 03:53:10 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2006-12-22 03:53:10 +0000
commitcaf2afd8fb59e94966a6aa8bcb86c01471f9c357 (patch)
treebce577a7f7dfde312ee16efbf3d542c218bdca54 /games/r1q2/files/patch-linux__vid_so.c
parenta941f3b092e9ba36e657e28ac53ee731a55bf2c2 (diff)
downloadports-caf2afd8fb59e94966a6aa8bcb86c01471f9c357.tar.gz
ports-caf2afd8fb59e94966a6aa8bcb86c01471f9c357.zip
Notes
Diffstat (limited to 'games/r1q2/files/patch-linux__vid_so.c')
-rw-r--r--games/r1q2/files/patch-linux__vid_so.c40
1 files changed, 11 insertions, 29 deletions
diff --git a/games/r1q2/files/patch-linux__vid_so.c b/games/r1q2/files/patch-linux__vid_so.c
index ad62b938fde4..d588b81f8d4a 100644
--- a/games/r1q2/files/patch-linux__vid_so.c
+++ b/games/r1q2/files/patch-linux__vid_so.c
@@ -1,29 +1,11 @@
---- ./linux/vid_so.c.orig Fri May 19 17:48:09 2006
-+++ ./linux/vid_so.c Fri May 19 17:49:23 2006
-@@ -196,7 +196,6 @@
-
- char fn[MAX_OSPATH];
- struct stat st;
-- char *path;
-
- if ( reflib_active )
- {
-@@ -212,17 +211,12 @@
-
- Com_Printf( "------- Loading %s -------\n", LOG_CLIENT, name);
-
-- path = Cvar_Get ("basedir", ".", CVAR_NOSET)->string;
-- snprintf (fn, MAX_OSPATH, "%s/%s", path, name );
-+ snprintf (fn, MAX_OSPATH, "%s/%s", LIBDIR, name );
-
- if (stat(fn, &st) == -1) {
- Com_Printf( "LoadLibrary(\"%s\") failed: %s\n", LOG_CLIENT, name, strerror(errno));
- return false;
- }
--
-- strcpy (fn, ".");
-- strcat(fn, "/");
-- strcat(fn, name);
-
- if ( ( reflib_library = dlopen( fn, RTLD_NOW ) ) == 0 )
- {
+--- ./linux/vid_so.c.orig Mon Oct 30 15:26:12 2006
++++ ./linux/vid_so.c Sat Dec 16 17:28:37 2006
+@@ -222,7 +222,7 @@
+ fn[strlen(fn) - 1] = 0;
+ */
+
+- strcpy (fn, ".");
++ strcpy (fn, LIBDIR);
+ strcat(fn, "/");
+ strcat(fn, name);
+