hacktools 0.32.10__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.
Files changed (32) hide show
  1. {hacktools-0.32.10/hacktools.egg-info → hacktools-0.33.1}/PKG-INFO +2 -1
  2. hacktools-0.33.1/hacktools/__init__.py +1 -0
  3. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/common.py +4 -2
  4. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/psp.py +5 -2
  5. {hacktools-0.32.10 → hacktools-0.33.1/hacktools.egg-info}/PKG-INFO +2 -1
  6. {hacktools-0.32.10 → hacktools-0.33.1}/setup.py +1 -0
  7. hacktools-0.32.10/hacktools/__init__.py +0 -1
  8. {hacktools-0.32.10 → hacktools-0.33.1}/LICENSE +0 -0
  9. {hacktools-0.32.10 → hacktools-0.33.1}/MANIFEST.in +0 -0
  10. {hacktools-0.32.10 → hacktools-0.33.1}/README.md +0 -0
  11. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/arch.py +0 -0
  12. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/assets/icon.png +0 -0
  13. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/c_ext/cmp_cri.c +0 -0
  14. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/c_ext/cmp_lzss.c +0 -0
  15. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/c_ext/cmp_misc.c +0 -0
  16. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/c_ext/inc.h +0 -0
  17. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/compression.py +0 -0
  18. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/cpk.py +0 -0
  19. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/gb.py +0 -0
  20. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/gui.py +0 -0
  21. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/nasm.py +0 -0
  22. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/nds.py +0 -0
  23. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/nitro.py +0 -0
  24. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/psx.py +0 -0
  25. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/wii.py +0 -0
  26. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools/ws.py +0 -0
  27. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools.egg-info/SOURCES.txt +0 -0
  28. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools.egg-info/dependency_links.txt +0 -0
  29. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools.egg-info/requires.txt +0 -0
  30. {hacktools-0.32.10 → hacktools-0.33.1}/hacktools.egg-info/top_level.txt +0 -0
  31. {hacktools-0.32.10 → hacktools-0.33.1}/setup.cfg +0 -0
  32. {hacktools-0.32.10 → hacktools-0.33.1}/tests/test_cmp.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hacktools
3
- Version: 0.32.10
3
+ Version: 0.33.1
4
4
  Summary: A set of utilities and tools for rom hacking and translations.
5
5
  Home-page: https://github.com/Illidanz/hacktools
6
6
  Author: Illidan
@@ -9,6 +9,7 @@ Classifier: Programming Language :: Python :: 3.8
9
9
  Classifier: Programming Language :: Python :: 3.9
10
10
  Classifier: Programming Language :: Python :: 3.10
11
11
  Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
12
13
  Classifier: License :: OSI Approved :: MIT License
13
14
  Classifier: Operating System :: OS Independent
14
15
  Requires-Python: >=3.7
@@ -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
- with open(extractfolder + dirname[1:] + "/" + file, "wb") as f:
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hacktools
3
- Version: 0.32.10
3
+ Version: 0.33.1
4
4
  Summary: A set of utilities and tools for rom hacking and translations.
5
5
  Home-page: https://github.com/Illidanz/hacktools
6
6
  Author: Illidan
@@ -9,6 +9,7 @@ Classifier: Programming Language :: Python :: 3.8
9
9
  Classifier: Programming Language :: Python :: 3.9
10
10
  Classifier: Programming Language :: Python :: 3.10
11
11
  Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
12
13
  Classifier: License :: OSI Approved :: MIT License
13
14
  Classifier: Operating System :: OS Independent
14
15
  Requires-Python: >=3.7
@@ -48,6 +48,7 @@ setup(
48
48
  "Programming Language :: Python :: 3.9",
49
49
  "Programming Language :: Python :: 3.10",
50
50
  "Programming Language :: Python :: 3.11",
51
+ "Programming Language :: Python :: 3.12",
51
52
  "License :: OSI Approved :: MIT License",
52
53
  "Operating System :: OS Independent",
53
54
  ],
@@ -1 +0,0 @@
1
- __version__ = "0.32.10"
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