1414 Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/
1515 Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
1616
17- $FileInfo: archivefile.py - Last Update: 11/3 /2025 Ver. 0.25.0 RC 1 - Author: cooldude2k $
17+ $FileInfo: archivefile.py - Last Update: 11/6 /2025 Ver. 0.25.2 RC 1 - Author: cooldude2k $
1818'''
1919
2020from __future__ import absolute_import , division , print_function , unicode_literals , generators , with_statement , nested_scopes
@@ -153,38 +153,38 @@ def handler(signum, frame):
153153 checkcompressfile = pyarchivefile .CheckCompressionSubType (
154154 input_file , fnamedict , 0 , True )
155155 if ((pyarchivefile .IsNestedDict (fnamedict ) and checkcompressfile in fnamedict ) or (pyarchivefile .IsSingleDict (fnamedict ) and checkcompressfile == fnamedict ['format_magic' ])):
156- tmpout = pyarchivefile .RePackArchiveFile (input_file , getargs .output , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , False , 0 , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum ], getargs .skipchecksum , [], {}, fnamedict , getargs .verbose , False )
156+ tmpout = pyarchivefile .RePackArchiveFile (input_file , getargs .output , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , False , 0 , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum , getargs . checksum ], getargs .skipchecksum , [], {}, fnamedict , getargs .verbose , False )
157157 else :
158158 tmpout = pyarchivefile .PackArchiveFileFromInFile (
159- input_file , getargs .output , __file_format_default__ , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum ], [], {}, fnamedict , getargs .verbose , False )
159+ input_file , getargs .output , __file_format_default__ , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum , getargs . checksum ], [], {}, fnamedict , getargs .verbose , False )
160160 if (not tmpout ):
161161 sys .exit (1 )
162162 else :
163- pyarchivefile .PackArchiveFile (getargs .input , getargs .output , getargs .text , __file_format_default__ , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , False , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum ], [], {}, fnamedict , getargs .verbose , False )
163+ pyarchivefile .PackArchiveFile (getargs .input , getargs .output , getargs .text , __file_format_default__ , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , False , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum , getargs . checksum ], [], {}, fnamedict , getargs .verbose , False )
164164 elif active_action == 'repack' :
165165 if getargs .convert :
166166 checkcompressfile = pyarchivefile .CheckCompressionSubType (
167167 input_file , fnamedict , 0 , True )
168168 if ((pyarchivefile .IsNestedDict (fnamedict ) and checkcompressfile in fnamedict ) or (pyarchivefile .IsSingleDict (fnamedict ) and checkcompressfile == fnamedict ['format_magic' ])):
169169 pyarchivefile .RePackArchiveFile (input_file , getargs .output , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt ,
170- False , 0 , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum ], getargs .skipchecksum , [], {}, fnamedict , getargs .verbose , False )
170+ False , 0 , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum , getargs . checksum ], getargs .skipchecksum , [], {}, fnamedict , getargs .verbose , False )
171171 else :
172- pyarchivefile .PackArchiveFileFromInFile (input_file , getargs .output , __file_format_default__ , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum ], [], {}, fnamedict , getargs .verbose , False )
172+ pyarchivefile .PackArchiveFileFromInFile (input_file , getargs .output , __file_format_default__ , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum , getargs . checksum ], [], {}, fnamedict , getargs .verbose , False )
173173 if (not tmpout ):
174174 sys .exit (1 )
175175 else :
176176 pyarchivefile .RePackArchiveFile (input_file , getargs .output , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt ,
177- False , getargs .filestart , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum ], getargs .skipchecksum , [], {}, fnamedict , getargs .verbose , False )
177+ False , getargs .filestart , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum , getargs . checksum ], getargs .skipchecksum , [], {}, fnamedict , getargs .verbose , False )
178178 elif active_action == 'extract' :
179179 if getargs .convert :
180180 checkcompressfile = pyarchivefile .CheckCompressionSubType (
181181 input_file , fnamedict , 0 , True )
182182 tempout = BytesIO ()
183183 if ((pyarchivefile .IsNestedDict (fnamedict ) and checkcompressfile in fnamedict ) or (pyarchivefile .IsSingleDict (fnamedict ) and checkcompressfile == fnamedict ['format_magic' ])):
184- tmpout = pyarchivefile .RePackArchiveFile (input_file , tempout , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , False , 0 , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum ], getargs .skipchecksum , [], {}, fnamedict , False , False )
184+ tmpout = pyarchivefile .RePackArchiveFile (input_file , tempout , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , False , 0 , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum , getargs . checksum ], getargs .skipchecksum , [], {}, fnamedict , False , False )
185185 else :
186186 tmpout = pyarchivefile .PackArchiveFileFromInFile (
187- input_file , tempout , __file_format_default__ , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum ], [], {}, fnamedict , False , False )
187+ input_file , tempout , __file_format_default__ , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum , getargs . checksum ], [], {}, fnamedict , False , False )
188188 if (not tmpout ):
189189 sys .exit (1 )
190190 input_file = tempout
@@ -208,10 +208,10 @@ def handler(signum, frame):
208208 input_file , fnamedict , 0 , True )
209209 tempout = BytesIO ()
210210 if ((pyarchivefile .IsNestedDict (fnamedict ) and checkcompressfile in fnamedict ) or (pyarchivefile .IsSingleDict (fnamedict ) and checkcompressfile == fnamedict ['format_magic' ])):
211- tmpout = pyarchivefile .RePackArchiveFile (input_file , tempout , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , False , 0 , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum ], getargs .skipchecksum , [], {}, fnamedict , False , False , False )
211+ tmpout = pyarchivefile .RePackArchiveFile (input_file , tempout , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , False , 0 , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum , getargs . checksum ], getargs .skipchecksum , [], {}, fnamedict , False , False , False )
212212 else :
213213 tmpout = pyarchivefile .PackArchiveFileFromInFile (
214- input_file , tempout , __file_format_default__ , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum ], [], {}, fnamedict , False , False )
214+ input_file , tempout , __file_format_default__ , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , [getargs .checksum , getargs .checksum , getargs .checksum , getargs .checksum , getargs . checksum ], [], {}, fnamedict , False , False )
215215 input_file = tempout
216216 if (not tmpout ):
217217 sys .exit (1 )
0 commit comments