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: 2/7 /2025 Ver. 0.18.2 RC 1 - Author: cooldude2k $
17+ $FileInfo: archivefile.py - Last Update: 2/20 /2025 Ver. 0.18.6 RC 1 - Author: cooldude2k $
1818'''
1919
2020from __future__ import absolute_import , division , print_function , unicode_literals , generators , with_statement , nested_scopes
@@ -173,38 +173,38 @@ def handler(signum, frame):
173173 checkcompressfile = pyarchivefile .CheckCompressionSubType (
174174 input_file , fnamedict , True )
175175 if ((IsNestedDict (fnamedict ) and compresscheck in fnamedict ) or (IsSingleDict (fnamedict ) and compresscheck == fnamedict ['format_magic' ])):
176- tmpout = pyarchivefile .RePackArchiveFile (input_file , getargs .output , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , False , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum ], getargs .skipchecksum , [], {}, fnamedict , getargs .verbose , False )
176+ tmpout = pyarchivefile .RePackArchiveFile (input_file , getargs .output , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , False , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum , getargs . checksum ], getargs .skipchecksum , [], {}, fnamedict , getargs .verbose , False )
177177 else :
178178 tmpout = pyarchivefile .PackArchiveFileFromInFile (
179- input_file , getargs .output , __file_format_default__ , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , [getargs .checksum , getargs .checksum , getargs .checksum ], [], {}, fnamedict , getargs .verbose , False )
179+ 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 )
180180 if (not tmpout ):
181181 sys .exit (1 )
182182 else :
183- 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 ], [], {}, fnamedict , getargs .verbose , False )
183+ 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 )
184184 elif active_action == 'repack' :
185185 if getargs .convert :
186186 checkcompressfile = pyarchivefile .CheckCompressionSubType (
187187 input_file , fnamedict , True )
188188 if ((IsNestedDict (fnamedict ) and compresscheck in fnamedict ) or (IsSingleDict (fnamedict ) and compresscheck == fnamedict ['format_magic' ])):
189189 pyarchivefile .RePackArchiveFile (input_file , getargs .output , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt ,
190- False , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum ], getargs .skipchecksum , [], {}, fnamedict , getargs .verbose , False )
190+ False , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum , getargs . checksum ], getargs .skipchecksum , [], {}, fnamedict , getargs .verbose , False )
191191 else :
192- pyarchivefile .PackArchiveFileFromInFile (input_file , getargs .output , __file_format_default__ , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , [getargs .checksum , getargs .checksum , getargs .checksum ], [], {}, fnamedict , getargs .verbose , False )
192+ 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 )
193193 if (not tmpout ):
194194 sys .exit (1 )
195195 else :
196196 pyarchivefile .RePackArchiveFile (input_file , getargs .output , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt ,
197- False , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum ], getargs .skipchecksum , [], {}, fnamedict , getargs .verbose , False )
197+ False , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum , getargs . checksum ], getargs .skipchecksum , [], {}, fnamedict , getargs .verbose , False )
198198 elif active_action == 'extract' :
199199 if getargs .convert :
200200 checkcompressfile = pyarchivefile .CheckCompressionSubType (
201201 input_file , fnamedict , True )
202202 tempout = BytesIO ()
203203 if ((IsNestedDict (fnamedict ) and compresscheck in fnamedict ) or (IsSingleDict (fnamedict ) and compresscheck == fnamedict ['format_magic' ])):
204- tmpout = pyarchivefile .RePackArchiveFile (input_file , tempout , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , False , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum ], getargs .skipchecksum , [], {}, fnamedict , False , False )
204+ tmpout = pyarchivefile .RePackArchiveFile (input_file , tempout , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , False , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum , getargs . checksum ], getargs .skipchecksum , [], {}, fnamedict , False , False )
205205 else :
206206 tmpout = pyarchivefile .PackArchiveFileFromInFile (
207- input_file , tempout , __file_format_default__ , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , [getargs .checksum , getargs .checksum , getargs .checksum ], [], {}, fnamedict , False , False )
207+ 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 )
208208 if (not tmpout ):
209209 sys .exit (1 )
210210 input_file = tempout
@@ -228,15 +228,15 @@ def handler(signum, frame):
228228 input_file , fnamedict , True )
229229 tempout = BytesIO ()
230230 if ((IsNestedDict (fnamedict ) and compresscheck in fnamedict ) or (IsSingleDict (fnamedict ) and compresscheck == fnamedict ['format_magic' ])):
231- tmpout = pyarchivefile .RePackArchiveFile (input_file , tempout , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , False , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum ], getargs .skipchecksum , [], {}, fnamedict , False , False , False )
231+ tmpout = pyarchivefile .RePackArchiveFile (input_file , tempout , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , False , 0 , 0 , [getargs .checksum , getargs .checksum , getargs .checksum , getargs . checksum ], getargs .skipchecksum , [], {}, fnamedict , False , False , False )
232232 else :
233233 tmpout = pyarchivefile .PackArchiveFileFromInFile (
234- input_file , tempout , __file_format_default__ , getargs .compression , getargs .wholefile , getargs .level , pyarchivefile .compressionlistalt , [getargs .checksum , getargs .checksum , getargs .checksum ], [], {}, fnamedict , False , False )
234+ 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 )
235235 input_file = tempout
236236 if (not tmpout ):
237237 sys .exit (1 )
238238 fvalid = pyarchivefile .ArchiveFileValidate (
239- input_file , "auto" , fnamedict , getargs .verbose , False )
239+ input_file , "auto" , fnamedict , False , getargs .verbose , False )
240240 if (not getargs .verbose ):
241241 import sys
242242 import logging
0 commit comments