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
This commit is contained in:
Dragorn421
2026-03-02 16:45:07 +01:00
committed by GitHub
parent 3d51e21020
commit e66e6f8f1d
14 changed files with 2861 additions and 50 deletions
+6 -1
View File
@@ -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