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 13, 2024
1 parent 71ba7d4 commit 18a2af4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2770,9 +2770,13 @@ def ArchiveFileToArray(infile, seekstart=0, seekend=0, listonly=False, skipcheck
return False;
catversions = re.search(r'(.*?)(\d+)$', catstring).groups();
catlist = {'fnumfiles': fnumfiles, 'fformat': catversions[0], 'fversion': catversions[1], 'fformatspecs': formatspecs, 'fchecksumtype': fprechecksumtype, 'fheaderchecksum': fprechecksum, 'ffilelist': {}};
if(seekstart<0):
if(seekstart<0 and seekstart>fnumfiles):
seekstart = 0;
if(seekend<=0 or seekend>fnumfiles):
if(seekend==0 or seekend>fnumfiles and seekend<seekstart):
seekend = fnumfiles;
elif(seekend<0 and abs(seekend)<=fnumfiles and abs(seekend)>=seekstart):
seekend = fnumfiles - abs(seekend);
else:
seekend = fnumfiles;
if(seekstart>0):
il = 0;
Expand Down

0 comments on commit 18a2af4

Please sign in to comment.