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 May 2, 2024
1 parent f8e1adb commit f548ef0
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 31 deletions.
2 changes: 1 addition & 1 deletion catfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/
Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
$FileInfo: catfile.py - Last Update: 5/1/2024 Ver. 0.9.4 RC 1 - Author: cooldude2k $
$FileInfo: catfile.py - Last Update: 5/1/2024 Ver. 0.9.6 RC 1 - Author: cooldude2k $
'''

from __future__ import absolute_import, division, print_function, unicode_literals;
Expand Down
2 changes: 1 addition & 1 deletion checksum.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/
Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
$FileInfo: checksum.py - Last Update: 5/1/2024 Ver. 0.9.4 RC 1 - Author: cooldude2k $
$FileInfo: checksum.py - Last Update: 5/1/2024 Ver. 0.9.6 RC 1 - Author: cooldude2k $
'''

from __future__ import absolute_import, division, print_function, unicode_literals;
Expand Down
2 changes: 1 addition & 1 deletion compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/
Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
$FileInfo: compression.py - Last Update: 5/1/2024 Ver. 0.9.4 RC 1 - Author: cooldude2k $
$FileInfo: compression.py - Last Update: 5/1/2024 Ver. 0.9.6 RC 1 - Author: cooldude2k $
'''

from __future__ import absolute_import, division, print_function, unicode_literals;
Expand Down
2 changes: 1 addition & 1 deletion mkcatfilebundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/
Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
$FileInfo: mkbundle.py - Last Update: 5/1/2024 Ver. 0.9.4 RC 1 - Author: cooldude2k $
$FileInfo: mkbundle.py - Last Update: 5/1/2024 Ver. 0.9.6 RC 1 - Author: cooldude2k $
'''

import os, sys, shutil, subprocess, tempfile, subprocess, platform;
Expand Down
2 changes: 1 addition & 1 deletion neocatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/
Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
$FileInfo: neocatfile.py - Last Update: 5/1/2024 Ver. 0.9.4 RC 1 - Author: cooldude2k $
$FileInfo: neocatfile.py - Last Update: 5/1/2024 Ver. 0.9.6 RC 1 - Author: cooldude2k $
'''

from __future__ import absolute_import, division, print_function, unicode_literals
Expand Down
4 changes: 2 additions & 2 deletions phpcatfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/
Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
$FileInfo: phpcatfile.php - Last Update: 5/1/2024 Ver. 0.9.4 RC 1 - Author: cooldude2k $
$FileInfo: phpcatfile.php - Last Update: 5/1/2024 Ver. 0.9.6 RC 1 - Author: cooldude2k $
*/

date_default_timezone_set('UTC');

$info['program_name'] = "PHPCatFile";
$info['project'] = $info['program_name'];
$info['project_url'] = "https://github.com/GameMaker2k/PyCatFile";
$info['version_info'] = [0, 9, 4, "RC 1", 1];
$info['version_info'] = [0, 9, 6, "RC 1", 1];
$info['version_id'] = "$Id$";
$info['version_date_info'] = [2024, 5, 1, "RC 1", 1];
$info['version_date'] = $info['version_date_info'][0].".".str_pad($info['version_date_info'][1], 2, "-=", STR_PAD_LEFT).".".str_pad($info['version_date_info'][2], 2, "-=", STR_PAD_LEFT);
Expand Down
53 changes: 32 additions & 21 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/
Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
$FileInfo: pycatfile.py - Last Update: 5/1/2024 Ver. 0.9.4 RC 1 - Author: cooldude2k $
$FileInfo: pycatfile.py - Last Update: 5/1/2024 Ver. 0.9.6 RC 1 - Author: cooldude2k $
'''

from __future__ import absolute_import, division, print_function, unicode_literals;
Expand Down Expand Up @@ -174,7 +174,7 @@
__file_format_list__ = [__file_format_name__, __file_format_magic__, __file_format_lower__, __file_format_len__, __file_format_hex__, __file_format_delimiter__, __file_format_ver__, __use_new_style__, __use_advanced_list__, __use_alt_inode__];
__project__ = __program_name__;
__project_url__ = "https://github.com/GameMaker2k/PyCatFile";
__version_info__ = (0, 9, 4, "RC 1", 1);
__version_info__ = (0, 9, 6, "RC 1", 1);
__version_date_info__ = (2024, 5, 1, "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];
Expand Down Expand Up @@ -2540,7 +2540,8 @@ def PackArchiveFile(infiles, outfile, dirlistfromtxt=False, compression="auto",
catfcontentstart = catfp.tell() + len(catfileoutstr);
catfileoutstrecd = catfileoutstr.encode('UTF-8');
nullstrecd = formatspecs[5].encode('UTF-8');
catfileout = catfileoutstrecd + fcontents + nullstrecd;
fcontents.seek(0, 0);
catfileout = catfileoutstrecd + fcontents.read() + nullstrecd;
catfcontentend = (catfp.tell() - 1) + len(catfileout);
catfp.write(catfileout);
try:
Expand Down Expand Up @@ -2777,7 +2778,8 @@ def PackArchiveFileFromTarFile(infile, outfile, compression="auto", compressionl
catfileoutstr = catfileoutstr + AppendNullBytes([catfileheadercshex, catfilecontentcshex], formatspecs[5]);
catfileoutstrecd = catfileoutstr.encode('UTF-8');
nullstrecd = formatspecs[5].encode('UTF-8');
catfileout = catfileoutstrecd + fcontents + nullstrecd;
fcontents.seek(0, 0);
catfileout = catfileoutstrecd + fcontents.read() + nullstrecd;
catfcontentend = (catfp.tell() - 1) + len(catfileout);
catfp.write(catfileout);
try:
Expand Down Expand Up @@ -3024,7 +3026,8 @@ def PackArchiveFileFromZipFile(infile, outfile, compression="auto", compressionl
catfileoutstr = catfileoutstr + AppendNullBytes([catfileheadercshex, catfilecontentcshex], formatspecs[5]);
catfileoutstrecd = catfileoutstr.encode('UTF-8');
nullstrecd = formatspecs[5].encode('UTF-8');
catfileout = catfileoutstrecd + fcontents + nullstrecd;
fcontents.seek(0, 0);
catfileout = catfileoutstrecd + fcontents.read() + nullstrecd;
catfcontentend = (catfp.tell() - 1) + len(catfileout);
catfp.write(catfileout);
try:
Expand Down Expand Up @@ -3287,11 +3290,12 @@ def PackArchiveFileFromRarFile(infile, outfile, compression="auto", compressionl
catfileoutstr = AppendNullByte(catheaersize, formatspecs[5]) + catfileoutstr;
catfileheadercshex = GetFileChecksum(catfileoutstr, checksumtype, True, formatspecs);
catfileoutstr = catfileoutstr + AppendNullBytes([catfileheadercshex, catfilecontentcshex], formatspecs[5])
catfileoutstrecd = catfileoutstr.encode('UTF-8')
nullstrecd = formatspecs[5].encode('UTF-8')
catfileout = catfileoutstrecd + fcontents + nullstrecd
catfcontentend = (catfp.tell() - 1) + len(catfileout)
catfp.write(catfileout)
catfileoutstrecd = catfileoutstr.encode('UTF-8');
nullstrecd = formatspecs[5].encode('UTF-8');
fcontents.seek(0, 0);
catfileout = catfileoutstrecd + fcontents.read() + nullstrecd;
catfcontentend = (catfp.tell() - 1) + len(catfileout);
catfp.write(catfileout);
try:
catfp.flush();
os.fsync(catfp.fileno());
Expand Down Expand Up @@ -3499,11 +3503,12 @@ def PackArchiveFileFromSevenZipFile(infile, outfile, compression="auto", compres
catfileoutstr = AppendNullByte(catheaersize, formatspecs[5]) + catfileoutstr;
catfileheadercshex = GetFileChecksum(catfileoutstr, checksumtype, True, formatspecs);
catfileoutstr = catfileoutstr + AppendNullBytes([catfileheadercshex, catfilecontentcshex], formatspecs[5])
catfileoutstrecd = catfileoutstr.encode('UTF-8')
nullstrecd = formatspecs[5].encode('UTF-8')
catfileout = catfileoutstrecd + fcontents + nullstrecd
catfcontentend = (catfp.tell() - 1) + len(catfileout)
catfp.write(catfileout)
catfileoutstrecd = catfileoutstr.encode('UTF-8');
nullstrecd = formatspecs[5].encode('UTF-8');
fcontents.seek(0, 0);
catfileout = catfileoutstrecd + fcontents.read() + nullstrecd;
catfcontentend = (catfp.tell() - 1) + len(catfileout);
catfp.write(catfileout);
try:
catfp.flush();
os.fsync(catfp.fileno());
Expand Down Expand Up @@ -4736,7 +4741,8 @@ def ListDirToArrayAlt(infiles, dirlistfromtxt=False, followlink=False, listonly=
nullstrecd = formatspecs[5].encode('UTF-8');
fheadtell += len(catfileoutstr) + 1;
catfcontentend = fheadtell - 1;
catfileout = catfileoutstrecd + fcontents + nullstrecd;
fcontents.seek(0, 0);
catfileout = catfileoutstrecd + fcontents.read() + nullstrecd;
pyhascontents = False;
if(int(fsize)>0 and not listonly):
pyhascontents = True;
Expand Down Expand Up @@ -4909,7 +4915,8 @@ def TarFileToArrayAlt(infiles, listonly=False, checksumtype="crc32", extradata=[
nullstrecd = formatspecs[5].encode('UTF-8');
fheadtell += len(catfileoutstr) + 1;
catfcontentend = fheadtell - 1;
catfileout = catfileoutstrecd + fcontents + nullstrecd;
fcontents.seek(0, 0);
catfileout = catfileoutstrecd + fcontents.read() + nullstrecd;
pyhascontents = False;
if(int(fsize)>0 and not listonly):
pyhascontents = True;
Expand Down Expand Up @@ -5100,7 +5107,8 @@ def ZipFileToArrayAlt(infiles, listonly=False, checksumtype="crc32", extradata=[
nullstrecd = formatspecs[5].encode('UTF-8');
fheadtell += len(catfileoutstr) + 1;
catfcontentend = fheadtell - 1;
catfileout = catfileoutstrecd + fcontents + nullstrecd;
fcontents.seek(0, 0);
catfileout = catfileoutstrecd + fcontents.read() + nullstrecd;
pyhascontents = False;
if(int(fsize)>0 and not listonly):
pyhascontents = True;
Expand Down Expand Up @@ -5309,7 +5317,8 @@ def RarFileToArrayAlt(infiles, listonly=False, checksumtype="crc32", extradata=[
nullstrecd = formatspecs[5].encode('UTF-8');
fheadtell += len(catfileoutstr) + 1;
catfcontentend = fheadtell - 1;
catfileout = catfileoutstrecd + fcontents + nullstrecd;
fcontents.seek(0, 0);
catfileout = catfileoutstrecd + fcontents.read() + nullstrecd;
pyhascontents = False;
if(int(fsize)>0 and not listonly):
pyhascontents = True;
Expand Down Expand Up @@ -5463,7 +5472,8 @@ def SevenZipFileToArrayAlt(infiles, listonly=False, checksumtype="crc32", extrad
nullstrecd = formatspecs[5].encode('UTF-8');
fheadtell += len(catfileoutstr) + 1;
catfcontentend = fheadtell - 1;
catfileout = catfileoutstrecd + fcontents + nullstrecd;
fcontents.seek(0, 0);
catfileout = catfileoutstrecd + fcontents.read() + nullstrecd;
pyhascontents = False;
if(int(fsize)>0 and not listonly):
pyhascontents = True;
Expand Down Expand Up @@ -6061,7 +6071,8 @@ def RePackArchiveFile(infile, outfile, compression="auto", compressionlevel=None
catfileoutstr = catfileoutstr + AppendNullBytes([catfileheadercshex, catfilecontentcshex], formatspecs[5]);
catfileoutstrecd = catfileoutstr.encode('UTF-8');
nullstrecd = formatspecs[5].encode('UTF-8');
catfileout = catfileoutstrecd + fcontents + nullstrecd;
fcontents.seek(0, 0);
catfileout = catfileoutstrecd + fcontents.read() + nullstrecd;
catfcontentend = (catfp.tell() - 1) + len(catfileout);
catfp.write(catfileout);
try:
Expand Down
2 changes: 1 addition & 1 deletion pyshell-old.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/
Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
$FileInfo: pyshell-old.py - Last Update: 5/1/2024 Ver. 0.9.4 RC 1 - Author: cooldude2k $
$FileInfo: pyshell-old.py - Last Update: 5/1/2024 Ver. 0.9.6 RC 1 - Author: cooldude2k $
'''

from __future__ import print_function
Expand Down
2 changes: 1 addition & 1 deletion pyshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/
Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
$FileInfo: pyshell.py - Last Update: 5/1/2024 Ver. 0.9.4 RC 1 - Author: cooldude2k $
$FileInfo: pyshell.py - Last Update: 5/1/2024 Ver. 0.9.6 RC 1 - Author: cooldude2k $
'''

from __future__ import division, absolute_import, print_function;
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Copyright 2016-2024 Game Maker 2k - http://intdb.sourceforge.net/
Copyright 2016-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
$FileInfo: setup.py - Last Update: 5/1/2024 Ver. 0.9.4 RC 1 - Author: cooldude2k $
$FileInfo: setup.py - Last Update: 5/1/2024 Ver. 0.9.6 RC 1 - Author: cooldude2k $
'''

import os, re, sys, pkg_resources;
Expand Down

0 comments on commit f548ef0

Please sign in to comment.