diff options
| author | Dragorn421 <Dragorn421@users.noreply.github.com> | 2026-03-02 16:45:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-02 16:45:07 +0100 |
| commit | e66e6f8f1da067260ced7ec9abd415011cfab8bc (patch) | |
| tree | f0aca4261aec977236c2af50eab9bab919a5015e /tools | |
| parent | 3d51e210200ef05059a42b5e1cdb7ab2d59348d6 (diff) | |
gc-eu-dbg OK (#2700)
* gc-eu-dbg OK
* cleanup/fortify makefile and line_numbers.h changes
* fill segments.csv
* add gc-eu-dbg to Jenkinsfile
* cleanup/fortify dmadata_table.h
* add gc-eu-dbg to readme
* fix checksum check and compressed checksum
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/decompress_baserom.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/decompress_baserom.py b/tools/decompress_baserom.py index 4e79d848e..2e8b6fd86 100755 --- a/tools/decompress_baserom.py +++ b/tools/decompress_baserom.py @@ -141,6 +141,11 @@ def per_version_fixes(file_content: bytearray, version: str) -> bytearray: # Patch the header print("Patching header...") file_content[0x3E] = 0x50 + if version == "gc-eu-dbg": + # Strip the overdump, which consists of an area of 0xFF bytes (which may + # be erased flash memory) and some unknown data + print("Stripping overdump...") + file_content = file_content[0:0x035C3000] return file_content @@ -228,7 +233,7 @@ def main(): # Check to see if the ROM is a "vanilla" ROM str_hash = get_str_hash(file_content) - if version == "gc-eu-mq-dbg": + if version in {"gc-eu-mq-dbg", "gc-eu-dbg"}: correct_str_hashes = decompressed_str_hashes else: correct_str_hashes = compressed_str_hashes |
