Typo, I swear\!
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2238 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
c18c51b7f6
commit
d593604177
1 changed files with 5 additions and 1 deletions
|
@ -364,15 +364,19 @@ 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", searchpath, gamename);
|
||||
sprintf (name, "%s/%s/%s", curpath, searchpath, gamename);
|
||||
|
||||
game_library = dlopen (name, RTLD_LAZY );
|
||||
if (game_library)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue