From ec5fcafc0a297aaeee98a80ca1ed84fe1f38de68 Mon Sep 17 00:00:00 2001 From: Kazuki Suzuki Przyborowski Date: Fri, 16 Sep 2022 14:43:58 -0500 Subject: [PATCH] Add files via upload --- catfile.py | 2 +- pycatfile.py | 6 ++++-- setup.py | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/catfile.py b/catfile.py index 7ca9b2b..c1940e9 100755 --- a/catfile.py +++ b/catfile.py @@ -14,7 +14,7 @@ Copyright 2018-2022 Game Maker 2k - http://intdb.sourceforge.net/ Copyright 2018-2022 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - $FileInfo: catfile.py - Last Update: 9/14/2022 Ver. 0.0.1 RC 1 - Author: cooldude2k $ + $FileInfo: catfile.py - Last Update: 9/16/2022 Ver. 0.0.1 RC 1 - Author: cooldude2k $ ''' from __future__ import absolute_import, division, print_function, unicode_literals; diff --git a/pycatfile.py b/pycatfile.py index 8bcaa4d..1d29543 100755 --- a/pycatfile.py +++ b/pycatfile.py @@ -14,7 +14,7 @@ Copyright 2018-2022 Game Maker 2k - http://intdb.sourceforge.net/ Copyright 2018-2022 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - $FileInfo: pycatfile.py - Last Update: 9/14/2022 Ver. 0.0.1 RC 1 - Author: cooldude2k $ + $FileInfo: pycatfile.py - Last Update: 9/16/2022 Ver. 0.0.1 RC 1 - Author: cooldude2k $ ''' from __future__ import absolute_import, division, print_function, unicode_literals; @@ -69,7 +69,7 @@ __project__ = __program_name__; __project_url__ = "https://github.com/GameMaker2k/PyCatFile"; __version_info__ = (0, 0, 1, "RC 1", 1); -__version_date_info__ = (2022, 9, 14, "RC 1", 1); +__version_date_info__ = (2022, 9, 16, "RC 1", 1); __version_date__ = str(__version_date_info__[0]) + "." + str(__version_date_info__[1]).zfill(2) + "." + str(__version_date_info__[2]).zfill(2); __revision__ = __version_info__[3]; __revision_id__ = "$Id$"; @@ -270,6 +270,8 @@ def CheckCompressionType(infile, closefp=True): filetype = "zstd"; if(prefp==binascii.unhexlify("04224d18")): filetype = "lz4"; + if(prefp==binascii.unhexlify("504B0304")): + filetype = "zipfile"; catfp.seek(0, 0); prefp = catfp.read(7); if(prefp==binascii.unhexlify("fd377a585a0000")): diff --git a/setup.py b/setup.py index 446e137..ecf2699 100755 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ Copyright 2016-2022 Game Maker 2k - http://intdb.sourceforge.net/ Copyright 2016-2022 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - $FileInfo: setup.py - Last Update: 9/14/2022 Ver. 0.0.1 RC 1 - Author: cooldude2k $ + $FileInfo: setup.py - Last Update: 9/16/2022 Ver. 0.0.1 RC 1 - Author: cooldude2k $ ''' import os, re, sys, pkg_resources;