diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-05-05 17:42:08 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-05-05 17:42:08 +0000 |
commit | 0eaf5b215b56bd6026193c3ab57d2bd4b2e1f27c (patch) | |
tree | eab7e9db652d0f8ac3e12a5b93cf161fbc782524 /games/sdlquake2/files/patch-sys_linux.c | |
parent | - Upgrade to v1.3.4. This release has: (diff) |
- Add games/sdlquake2.
Basically this is a combination of R1Q2 and R1GL with SDL code from
Quake2Forge. Meaning it's R1Q2 protocol 35 compatible Linux client. Tested on
Debian Sarge. Both client and dedicated server.
WWW: http://koti.mbnet.fi/~turol/sdlquake2/
Notes
Notes:
svn path=/head/; revision=161432
Diffstat (limited to 'games/sdlquake2/files/patch-sys_linux.c')
-rw-r--r-- | games/sdlquake2/files/patch-sys_linux.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/games/sdlquake2/files/patch-sys_linux.c b/games/sdlquake2/files/patch-sys_linux.c new file mode 100644 index 000000000000..6a77ae750b4b --- /dev/null +++ b/games/sdlquake2/files/patch-sys_linux.c @@ -0,0 +1,29 @@ +--- ./sys_linux.c.orig Thu May 19 17:56:13 2005 ++++ ./sys_linux.c Sun Feb 26 11:23:56 2006 +@@ -230,7 +230,7 @@ + + size = backtrace (array, sizeof(array)/sizeof(void*)); + +-#ifndef __x86_64__ ++#if !defined(__x86_64__) && !defined(__FreeBSD__) + array[1] = (void *) uc->uc_mcontext.gregs[REG_EIP]; + #endif + +@@ -423,7 +423,7 @@ + + if (baseq2) + { +- Com_sprintf (name, sizeof(name), "%s/%s/%s", curpath, BASEDIRNAME, gamename); ++ Com_sprintf (name, sizeof(name), "%s/%s/%s", LIBDIR, BASEDIRNAME, gamename); + game_library = dlopen (name, RTLD_NOW ); + } + else +@@ -435,7 +435,7 @@ + path = FS_NextPath (path); + if (!path) + return NULL; // couldn't find one anywhere +- Com_sprintf (name, sizeof(name), "%s/%s/%s", curpath, path, gamename); ++ Com_sprintf (name, sizeof(name), "%s/%s", path, gamename); + game_library = dlopen (name, RTLD_NOW ); + if (game_library) + { |