Can now load Quake 2 game files from an absolute path.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2467 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
66cfc8b127
commit
90767354c4
1 changed files with 4 additions and 1 deletions
|
@ -375,7 +375,10 @@ void *Sys_GetGameAPI(void *parms)
|
|||
searchpath = 0;
|
||||
while((searchpath = COM_NextPath(searchpath)))
|
||||
{
|
||||
sprintf (name, "%s/%s/%s", curpath, searchpath, gamename);
|
||||
if (searchpath[0] == '/')
|
||||
snprintf(name, sizeof(name), "%s/%s", searchpath, gamename);
|
||||
else
|
||||
snprintf(name, sizeof(name), "%s/%s/%s", curpath, searchpath, gamename);
|
||||
|
||||
game_library = dlopen (name, RTLD_LAZY );
|
||||
if (game_library)
|
||||
|
|
Loading…
Reference in a new issue