hacktools 0.38.0__tar.gz → 0.38.2__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.38.0/hacktools.egg-info → hacktools-0.38.2}/PKG-INFO +1 -1
- hacktools-0.38.2/hacktools/__init__.py +1 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/common.py +3 -2
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/psp.py +1 -1
- {hacktools-0.38.0 → hacktools-0.38.2/hacktools.egg-info}/PKG-INFO +1 -1
- hacktools-0.38.0/hacktools/__init__.py +0 -1
- {hacktools-0.38.0 → hacktools-0.38.2}/LICENSE +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/MANIFEST.in +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/README.md +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/arch.py +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/assets/icon.png +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/c_ext/cmp_cri.c +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/c_ext/cmp_lzss.c +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/c_ext/cmp_misc.c +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/c_ext/cmp_racjin.c +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/c_ext/inc.h +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/compression.py +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/cpk.py +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/gb.py +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/gui.py +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/nasm.py +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/nds.py +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/nitro.py +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/psx.py +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/wii.py +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools/ws.py +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools.egg-info/SOURCES.txt +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools.egg-info/dependency_links.txt +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools.egg-info/requires.txt +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/hacktools.egg-info/top_level.txt +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/setup.cfg +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/setup.py +0 -0
- {hacktools-0.38.0 → hacktools-0.38.2}/tests/test_cmp.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.38.2"
|
|
@@ -969,7 +969,7 @@ def detectASCIIString(f, encoding="ascii", startascii=[]):
|
|
|
969
969
|
return ret
|
|
970
970
|
|
|
971
971
|
|
|
972
|
-
def writeEncodedString(f, s, maxlen=0, encoding="shift_jis"):
|
|
972
|
+
def writeEncodedString(f, s, maxlen=0, encoding="shift_jis", zerobytes=1):
|
|
973
973
|
i = 0
|
|
974
974
|
x = 0
|
|
975
975
|
s = s.replace("~", "〜")
|
|
@@ -1000,7 +1000,8 @@ def writeEncodedString(f, s, maxlen=0, encoding="shift_jis"):
|
|
|
1000
1000
|
f.write(c.encode(encoding))
|
|
1001
1001
|
i += 2
|
|
1002
1002
|
x += 1
|
|
1003
|
-
|
|
1003
|
+
if zerobytes > 0:
|
|
1004
|
+
f.writeZero(zerobytes)
|
|
1004
1005
|
return i
|
|
1005
1006
|
|
|
1006
1007
|
|
|
@@ -181,7 +181,7 @@ def searchUMD(f, filename, path, lba, length):
|
|
|
181
181
|
found = searchUMD(f, filename, newpath, newlba, newlen)
|
|
182
182
|
if found != 0:
|
|
183
183
|
return found
|
|
184
|
-
elif newpath.lower() == filename.lower():
|
|
184
|
+
elif newpath.lower() == filename.lower() or newpath.lower() == filename.lower() + ".":
|
|
185
185
|
return 0x800 * (lba + i) + pos
|
|
186
186
|
return 0
|
|
187
187
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.38.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
|
|
File without changes
|