mirror of
https://github.com/zeldaret/oot
synced 2026-08-18 13:43:14 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user