hacktools 0.36.0__tar.gz → 0.37.0__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 (33) hide show
  1. {hacktools-0.36.0/hacktools.egg-info → hacktools-0.37.0}/PKG-INFO +2 -1
  2. hacktools-0.37.0/hacktools/__init__.py +1 -0
  3. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/common.py +8 -2
  4. {hacktools-0.36.0 → hacktools-0.37.0/hacktools.egg-info}/PKG-INFO +2 -1
  5. {hacktools-0.36.0 → hacktools-0.37.0}/setup.py +1 -0
  6. hacktools-0.36.0/hacktools/__init__.py +0 -1
  7. {hacktools-0.36.0 → hacktools-0.37.0}/LICENSE +0 -0
  8. {hacktools-0.36.0 → hacktools-0.37.0}/MANIFEST.in +0 -0
  9. {hacktools-0.36.0 → hacktools-0.37.0}/README.md +0 -0
  10. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/arch.py +0 -0
  11. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/assets/icon.png +0 -0
  12. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/c_ext/cmp_cri.c +0 -0
  13. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/c_ext/cmp_lzss.c +0 -0
  14. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/c_ext/cmp_misc.c +0 -0
  15. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/c_ext/cmp_racjin.c +0 -0
  16. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/c_ext/inc.h +0 -0
  17. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/compression.py +0 -0
  18. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/cpk.py +0 -0
  19. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/gb.py +0 -0
  20. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/gui.py +0 -0
  21. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/nasm.py +0 -0
  22. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/nds.py +0 -0
  23. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/nitro.py +0 -0
  24. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/psp.py +0 -0
  25. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/psx.py +0 -0
  26. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/wii.py +0 -0
  27. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools/ws.py +0 -0
  28. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools.egg-info/SOURCES.txt +0 -0
  29. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools.egg-info/dependency_links.txt +0 -0
  30. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools.egg-info/requires.txt +0 -0
  31. {hacktools-0.36.0 → hacktools-0.37.0}/hacktools.egg-info/top_level.txt +0 -0
  32. {hacktools-0.36.0 → hacktools-0.37.0}/setup.cfg +0 -0
  33. {hacktools-0.36.0 → hacktools-0.37.0}/tests/test_cmp.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hacktools
3
- Version: 0.36.0
3
+ Version: 0.37.0
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
@@ -10,6 +10,7 @@ Classifier: Programming Language :: Python :: 3.9
10
10
  Classifier: Programming Language :: Python :: 3.10
11
11
  Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
13
14
  Classifier: License :: OSI Approved :: MIT License
14
15
  Classifier: Operating System :: OS Independent
15
16
  Requires-Python: >=3.7
@@ -0,0 +1 @@
1
+ __version__ = "0.37.0"
@@ -8,6 +8,7 @@ import re
8
8
  import shlex
9
9
  import shutil
10
10
  import sys
11
+ import stat
11
12
  import struct
12
13
  import subprocess
13
14
  import typing
@@ -430,7 +431,7 @@ if hasClick:
430
431
  runGUI()
431
432
 
432
433
 
433
- def runStartup():
434
+ def runStartup(skipcrc=False):
434
435
  if datafolder != "" and not os.path.isdir(datafolder):
435
436
  makeFolder(datafolder)
436
437
  if appname != "":
@@ -441,7 +442,7 @@ if hasClick:
441
442
  if filecheck != "" and not os.path.isfile(filecheck):
442
443
  logError(filecheck, "file not found.")
443
444
  return False
444
- if crc >= 0 and not os.path.isfile(".skipcrc"):
445
+ if crc >= 0 and not skipcrc and not os.path.isfile(".skipcrc"):
445
446
  checkcrc = crcFile(filecheck)
446
447
  if crc != checkcrc:
447
448
  logMessage("Checksum mismatch for", filecheck, "(" + toHex(checkcrc) + ", expected", toHex(crc) + ")")
@@ -1154,6 +1155,11 @@ def makeFolder(folder, clear=True):
1154
1155
 
1155
1156
  def clearFolder(folder):
1156
1157
  if os.path.isdir(folder):
1158
+ # Ensure files aren't marked as read-only
1159
+ for root, dirs, files in os.walk(folder, topdown=False):
1160
+ for name in files:
1161
+ filename = os.path.join(root, name)
1162
+ os.chmod(filename, stat.S_IWUSR)
1157
1163
  shutil.rmtree(folder)
1158
1164
 
1159
1165
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hacktools
3
- Version: 0.36.0
3
+ Version: 0.37.0
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
@@ -10,6 +10,7 @@ Classifier: Programming Language :: Python :: 3.9
10
10
  Classifier: Programming Language :: Python :: 3.10
11
11
  Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
13
14
  Classifier: License :: OSI Approved :: MIT License
14
15
  Classifier: Operating System :: OS Independent
15
16
  Requires-Python: >=3.7
@@ -50,6 +50,7 @@ setup(
50
50
  "Programming Language :: Python :: 3.10",
51
51
  "Programming Language :: Python :: 3.11",
52
52
  "Programming Language :: Python :: 3.12",
53
+ "Programming Language :: Python :: 3.13",
53
54
  "License :: OSI Approved :: MIT License",
54
55
  "Operating System :: OS Independent",
55
56
  ],
@@ -1 +0,0 @@
1
- __version__ = "0.36.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