attempting to fix SysGameAPI

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2237 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2006-05-02 03:30:21 +00:00
parent 047500f9ad
commit c18c51b7f6

View file

@ -364,18 +364,15 @@ void *Sys_GetGameAPI(void *parms)
void *(*GetGameAPI)(void *);
char name[MAX_OSPATH];
char curpath[MAX_OSPATH];
char *searchpath;
const char *gamename = "gamei386.so";
void *ret;
getcwd(curpath, sizeof(curpath));
searchpath = 0;
while((searchpath = COM_NextPath(searchpath)))
{
sprintf (name, "%s/%s/%s", curpath, path, gamename);
sprintf (name, "%s/%s", searchpath, gamename);
game_library = dlopen (name, RTLD_LAZY );
if (game_library)
{