mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 22:11:22 +00:00
more correct export read for unreal beta, for correctness sake...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@888 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
e17a2459b7
commit
7e452509c2
1 changed files with 1 additions and 1 deletions
|
@ -183,8 +183,8 @@ static int read_export (fshandle_t *f, const struct upkg_hdr *hdr,
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (hdr->file_version < 40) idx += 8; /* 00 00 00 00 00 00 00 00 */
|
if (hdr->file_version < 40) idx += 8; /* 00 00 00 00 00 00 00 00 */
|
||||||
|
if (hdr->file_version < 60) idx += 16; /* 81 00 00 00 00 00 FF FF FF FF FF FF FF FF 00 00 */
|
||||||
get_fci(&buf[idx], &idx); /* skip junk */
|
get_fci(&buf[idx], &idx); /* skip junk */
|
||||||
if (hdr->file_version < 60) idx += 16; /* 00 00 00 00 00 FF FF FF FF FF FF FF FF 00 00 00 */
|
|
||||||
t = get_fci(&buf[idx], &idx); /* type_name */
|
t = get_fci(&buf[idx], &idx); /* type_name */
|
||||||
if (hdr->file_version > 61) idx += 4; /* skip export size */
|
if (hdr->file_version > 61) idx += 4; /* skip export size */
|
||||||
*objsize = get_fci(&buf[idx], &idx);
|
*objsize = get_fci(&buf[idx], &idx);
|
||||||
|
|
Loading…
Reference in a new issue