|
14 | 14 | Copyright 2018-2026 Game Maker 2k - http://intdb.sourceforge.net/ |
15 | 15 | Copyright 2018-2026 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski |
16 | 16 |
|
17 | | - $FileInfo: pyneofile.py - Last Update: 2/8/2026 Ver. 0.28.8 RC 1 - Author: cooldude2k $ |
| 17 | + $FileInfo: pyneofile.py - Last Update: 2/24/2026 Ver. 0.30.0 RC 1 - Author: cooldude2k $ |
18 | 18 | ''' |
19 | 19 |
|
20 | 20 | import io |
@@ -778,8 +778,8 @@ def _get(section_dict, key, default=None): |
778 | 778 | __program_alt_name__ = __program_name__ |
779 | 779 | __project_url__ = "https://github.com/GameMaker2k/PyNeoFile" |
780 | 780 | __project_release_url__ = __project_url__+"/releases/latest" |
781 | | -__version_info__ = (0, 28, 8, "RC 1", 1) |
782 | | -__version_date_info__ = (2026, 2, 8, "RC 1", 1) |
| 781 | +__version_info__ = (0, 30, 0, "RC 1", 1) |
| 782 | +__version_date_info__ = (2026, 2, 24, "RC 1", 1) |
783 | 783 | __version_date__ = str(__version_date_info__[0]) + "." + str( |
784 | 784 | __version_date_info__[1]).zfill(2) + "." + str(__version_date_info__[2]).zfill(2) |
785 | 785 | __revision__ = __version_info__[3] |
@@ -6187,7 +6187,7 @@ def AppendFilesWithContentToList(infiles, dirlistfromtxt=False, extradata=[], js |
6187 | 6187 | if not followlink and ftype in data_types: |
6188 | 6188 | with open(fname, "rb") as fpc: |
6189 | 6189 | shutil.copyfileobj(fpc, fcontents, length=__filebuff_size__) |
6190 | | - if(fsize is not fcontents.tell()): |
| 6190 | + if(int(fsize, 16) != fcontents.tell()): |
6191 | 6191 | fsize = format(int(fcontents.tell()), 'x').lower() |
6192 | 6192 | typechecktest = CheckCompressionType(fcontents, filestart=0, closefp=False) |
6193 | 6193 | fcontents.seek(0, 0) |
@@ -6468,7 +6468,7 @@ def AppendFilesWithContentFromTarFileToList(infile, extradata=[], jsondata={}, c |
6468 | 6468 | if ftype in data_types: |
6469 | 6469 | fpc = tarfp.extractfile(member) |
6470 | 6470 | shutil.copyfileobj(fpc, fcontents, length=__filebuff_size__) |
6471 | | - if(fsize is not fcontents.tell()): |
| 6471 | + if(int(fsize, 16) != fcontents.tell()): |
6472 | 6472 | fsize = format(int(fcontents.tell()), 'x').lower() |
6473 | 6473 | fpc.close() |
6474 | 6474 | typechecktest = CheckCompressionType(fcontents, filestart=0, closefp=False) |
@@ -6784,7 +6784,7 @@ def AppendFilesWithContentFromBSDTarFileToList(infile, extradata=[], jsondata={} |
6784 | 6784 | fcontents.write(member.read()) |
6785 | 6785 | else: |
6786 | 6786 | pass |
6787 | | - if(fsize is not fcontents.tell()): |
| 6787 | + if(int(fsize, 16) != fcontents.tell()): |
6788 | 6788 | fsize = format(int(fcontents.tell()), 'x').lower() |
6789 | 6789 | typechecktest = CheckCompressionType(fcontents, filestart=0, closefp=False) |
6790 | 6790 | fcontents.seek(0, 0) |
@@ -7032,7 +7032,7 @@ def AppendFilesWithContentFromZipFileToList(infile, extradata=[], jsondata={}, c |
7032 | 7032 | curcompression = "none" |
7033 | 7033 | if ftype == 0: |
7034 | 7034 | fcontents.write(zipfp.read(member.filename)) |
7035 | | - if(fsize is not fcontents.tell()): |
| 7035 | + if(int(fsize, 16) != fcontents.tell()): |
7036 | 7036 | fsize = format(int(fcontents.tell()), 'x').lower() |
7037 | 7037 | typechecktest = CheckCompressionType(fcontents, filestart=0, closefp=False) |
7038 | 7038 | fcontents.seek(0, 0) |
@@ -7270,7 +7270,7 @@ def AppendFilesWithContentFromRarFileToList(infile, extradata=[], jsondata={}, c |
7270 | 7270 | curcompression = "none" |
7271 | 7271 | if ftype == 0: |
7272 | 7272 | fcontents.write(rarfp.read(member.filename)) |
7273 | | - if(fsize is not fcontents.tell()): |
| 7273 | + if(int(fsize, 16) != fcontents.tell()): |
7274 | 7274 | fsize = format(int(fcontents.tell()), 'x').lower() |
7275 | 7275 | typechecktest = CheckCompressionType(fcontents, filestart=0, closefp=False) |
7276 | 7276 | fcontents.seek(0, 0) |
|
0 commit comments