aboutsummaryrefslogtreecommitdiff
path: root/games/egl/files/patch-unix__unix_main.c
blob: 744819756069c073e80b1a9e4c94f65563c2d6a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- unix/unix_main.c.orig	Mon Jul 24 14:03:13 2006
+++ unix/unix_main.c	Mon Jul 24 14:06:39 2006
@@ -44,10 +44,6 @@
 #include "../common/common.h"
 #include "unix_local.h"
 
-#if defined(__FreeBSD__)
-#include <machine/param.h>
-#endif
-
 uid_t	saved_euid;
 
 #ifndef DEDICATED_ONLY
@@ -623,8 +619,8 @@
 } libList_t;
 
 static libList_t sys_libList[LIB_MAX] = {
-	{ "LIB_CGAME",	NULL,	"eglcgame" LIBARCH ".so",	"GetCGameAPI"	},
-	{ "LIB_GAME",	NULL,	"game" LIBARCH ".so",		"GetGameAPI"	},
+	{ "LIB_CGAME",	NULL,	"eglcgame.so",	"GetCGameAPI"	},
+	{ "LIB_GAME",	NULL,	"game.so",		"GetGameAPI"	},
 };
 
 /*
@@ -660,7 +656,6 @@
 void *Sys_LoadLibrary (libType_t libType, void *parms)
 {
 	char		name[MAX_OSPATH];
-	char		cwd[MAX_OSPATH];
 	char		*path;
 	void		*(*APIfunc) (void *);
 	void		**lib;
@@ -713,8 +708,7 @@
 		Com_Error (ERR_FATAL, "Sys_LoadLibrary (%s) without Sys_UnloadLibrary", sys_libList[libType].title);
 
 	// Check the current debug directory first for development purposes
-	getcwd (cwd, sizeof(cwd));
-	Q_snprintfz (name, sizeof(name), "%s/%s/%s", cwd, debugdir, libName);
+	Q_snprintfz (name, sizeof(name), "%s/%s", debugdir, libName);
 	*lib = dlopen (name,  RTLD_NOW);
 
 	if (*lib) {