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:
parent
047500f9ad
commit
c18c51b7f6
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue