mirror of
https://github.com/elliotnunn/tbxi.git
synced 2024-12-21 00:29:33 +00:00
Tiny round-trip fix for NewWorld ROMs
This commit is contained in:
parent
f9ef4e1a35
commit
01b9eeff03
@ -232,10 +232,11 @@ def build(src):
|
||||
insert_and_assert(flat, lowmem, ptr)
|
||||
fields['MacLowMemInitOffset'] = ptr
|
||||
|
||||
ptr -= len(pagemap)
|
||||
insert_and_assert(flat, pagemap, ptr)
|
||||
fields['PageMapInitOffset'] = ptr
|
||||
fields['PageMapInitSize'] = len(pagemap)
|
||||
if len(pagemap) > 0:
|
||||
ptr -= len(pagemap)
|
||||
insert_and_assert(flat, pagemap, ptr)
|
||||
fields['PageMapInitOffset'] = ptr
|
||||
fields['PageMapInitSize'] = len(pagemap)
|
||||
|
||||
insert_and_assert(flat, ConfigInfo.pack(**fields), 0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user