hacktools 0.33.0__tar.gz → 0.33.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hacktools-0.33.0/hacktools.egg-info → hacktools-0.33.1}/PKG-INFO +1 -1
- hacktools-0.33.1/hacktools/__init__.py +1 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/common.py +4 -2
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/psp.py +5 -2
- {hacktools-0.33.0 → hacktools-0.33.1/hacktools.egg-info}/PKG-INFO +1 -1
- hacktools-0.33.0/hacktools/__init__.py +0 -1
- {hacktools-0.33.0 → hacktools-0.33.1}/LICENSE +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/MANIFEST.in +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/README.md +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/arch.py +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/assets/icon.png +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/c_ext/cmp_cri.c +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/c_ext/cmp_lzss.c +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/c_ext/cmp_misc.c +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/c_ext/inc.h +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/compression.py +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/cpk.py +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/gb.py +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/gui.py +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/nasm.py +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/nds.py +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/nitro.py +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/psx.py +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/wii.py +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools/ws.py +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools.egg-info/SOURCES.txt +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools.egg-info/dependency_links.txt +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools.egg-info/requires.txt +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/hacktools.egg-info/top_level.txt +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/setup.cfg +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/setup.py +0 -0
- {hacktools-0.33.0 → hacktools-0.33.1}/tests/test_cmp.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.33.1"
|
|
@@ -193,12 +193,14 @@ class Stream(object):
|
|
|
193
193
|
self.seek(current)
|
|
194
194
|
return ret
|
|
195
195
|
|
|
196
|
-
def readHalf(self):
|
|
196
|
+
def readHalf(self, big=False):
|
|
197
197
|
if self.half is None:
|
|
198
198
|
self.half = self.readByte()
|
|
199
|
+
if big:
|
|
200
|
+
return self.half >> 4
|
|
199
201
|
return self.half & 0x0f
|
|
200
202
|
else:
|
|
201
|
-
ret = self.half >> 4
|
|
203
|
+
ret = self.half >> 4 if not big else self.half & 0x0f
|
|
202
204
|
self.half = None
|
|
203
205
|
return ret
|
|
204
206
|
|
|
@@ -7,7 +7,7 @@ import struct
|
|
|
7
7
|
from hacktools import common
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
def extractIso(isofile, extractfolder, workfolder=""):
|
|
10
|
+
def extractIso(isofile, extractfolder, workfolder="", fixfilename=False):
|
|
11
11
|
try:
|
|
12
12
|
import pycdlib
|
|
13
13
|
except ImportError:
|
|
@@ -20,7 +20,10 @@ def extractIso(isofile, extractfolder, workfolder=""):
|
|
|
20
20
|
for dirname, dirlist, filelist in iso.walk(iso_path="/"):
|
|
21
21
|
common.makeFolders(extractfolder + dirname[1:])
|
|
22
22
|
for file in filelist:
|
|
23
|
-
|
|
23
|
+
extractname = file
|
|
24
|
+
if fixfilename:
|
|
25
|
+
extractname = extractname.replace(";1", "")
|
|
26
|
+
with open(extractfolder + dirname[1:] + "/" + extractname, "wb") as f:
|
|
24
27
|
iso.get_file_from_iso_fp(f, iso_path=dirname + "/" + file)
|
|
25
28
|
iso.close()
|
|
26
29
|
if workfolder != "":
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.33.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|