Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski authored Mar 12, 2024
1 parent a478219 commit c1b399b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2789,6 +2789,7 @@ def ArchiveFileToArray(infile, seekstart=0, seekend=0, listonly=False, skipcheck
catfhstart = catfp.tell();
if(usenewstyle):
catheaderdata = ReadFileHeaderDataBySize(catfp, formatspecs[4]);
catfp.seek(1, 1);
else:
catheaderdata = ReadFileHeaderData(catfp, 23, formatspecs[4]);
catfheadsize = int(catheaderdata[0], 16);
Expand Down Expand Up @@ -2902,8 +2903,6 @@ def ArchiveFileToArray(infile, seekstart=0, seekend=0, listonly=False, skipcheck
catfp.seek(1, 1);
catfcontentend = catfp.tell() - 1;
catlist['ffilelist'].update({realidnum: {'fid': realidnum, 'fidalt': fileidnum, 'fheadersize': catfheadsize, 'fhstart': catfhstart, 'fhend': catfhend, 'ftype': catftype, 'fname': catfname, 'fbasedir': catfbasedir, 'flinkname': catflinkname, 'fsize': catfsize, 'fatime': catfatime, 'fmtime': catfmtime, 'fctime': catfctime, 'fbtime': catfbtime, 'fmode': catfmode, 'fchmode': catfchmode, 'ftypemod': catftypemod, 'fuid': catfuid, 'funame': catfuname, 'fgid': catfgid, 'fgname': catfgname, 'finode': finode, 'flinkcount': flinkcount, 'fminor': catfdev_minor, 'fmajor': catfdev_major, 'frminor': catfrdev_minor, 'frmajor': catfrdev_major, 'fchecksumtype': catfchecksumtype, 'fnumfields': catfnumfields, 'fextrafields': catfextrafields, 'fextrafieldsize': catfextrasize, 'fextralist': extrafieldslist, 'fheaderchecksum': catfcs, 'fcontentchecksum': catfccs, 'fhascontents': pyhascontents, 'fcontentstart': catfcontentstart, 'fcontentend': catfcontentend, 'fcontents': catfcontents} });
if(usenewstyle):
catfp.seek(1, 1);
fileidnum = fileidnum + 1;
realidnum = realidnum + 1;
if(returnfp):
Expand Down

0 comments on commit c1b399b

Please sign in to comment.