mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2024-12-12 13:42:21 +00:00
correct a misleading error and some missed foundname sets
This commit is contained in:
parent
c0851f716e
commit
f2cbe232de
1 changed files with 3 additions and 1 deletions
|
@ -282,6 +282,7 @@ int _FS_FOpenFile (char *filename, QFile **file, char *foundname, int zip)
|
||||||
#endif
|
#endif
|
||||||
if (*file)
|
if (*file)
|
||||||
{
|
{
|
||||||
|
strncpy (foundname, netpath, MAX_OSPATH);
|
||||||
Com_DPrintf ("link file: %s\n",netpath);
|
Com_DPrintf ("link file: %s\n",netpath);
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
@ -314,7 +315,7 @@ int _FS_FOpenFile (char *filename, QFile **file, char *foundname, int zip)
|
||||||
pak->files[i].filepos,
|
pak->files[i].filepos,
|
||||||
pak->files[i].filelen, zip, &size);
|
pak->files[i].filelen, zip, &size);
|
||||||
if (!*file)
|
if (!*file)
|
||||||
Com_Error (ERR_FATAL, "Couldn't reopen %s", pak->filename);
|
Com_Error (ERR_FATAL, "Couldn't open %s", foundname);
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -334,6 +335,7 @@ int _FS_FOpenFile (char *filename, QFile **file, char *foundname, int zip)
|
||||||
if (!*file)
|
if (!*file)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
strncpy (foundname, netpath, MAX_OSPATH);
|
||||||
Com_DPrintf ("FindFile: %s\n",netpath);
|
Com_DPrintf ("FindFile: %s\n",netpath);
|
||||||
|
|
||||||
return size;
|
return size;
|
||||||
|
|
Loading…
Reference in a new issue