diff options
| author | Dragorn421 <Dragorn421@users.noreply.github.com> | 2026-04-07 11:18:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-07 11:18:17 +0200 |
| commit | 177951c4dbe235bbbca0e8c07a3c80910f6d7aa5 (patch) | |
| tree | 712c2a9a23dd0a618c94ff15bb8965d28a9e2c3a /tools | |
| parent | b50e208d60c3c86e634909af6e3b204a9e9a5272 (diff) | |
oot-gc-eu-dbg-2 OK (#2714)
* oot-gc-eu-dbg-proto OK
* add gc-eu-dbg-proto to readme
* mention overdump trimming for all debug roms
* rename gc-eu-dbg-proto to gc-eu-dbg-2
Rationale: first version to make it into decomp (which should also be the first one that surfaces) gets an un-numbered version name, then the second version gets -2, and so on
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/decompress_baserom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/decompress_baserom.py b/tools/decompress_baserom.py index 2e8b6fd86..3d273c5d9 100755 --- a/tools/decompress_baserom.py +++ b/tools/decompress_baserom.py @@ -141,7 +141,7 @@ 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": + if version in {"gc-eu-dbg-2", "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...") @@ -233,7 +233,7 @@ def main(): # Check to see if the ROM is a "vanilla" ROM str_hash = get_str_hash(file_content) - if version in {"gc-eu-mq-dbg", "gc-eu-dbg"}: + if version in {"gc-eu-dbg-2", "gc-eu-mq-dbg", "gc-eu-dbg"}: correct_str_hashes = decompressed_str_hashes else: correct_str_hashes = compressed_str_hashes |
