mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-10 19:20:13 +00:00
Fix sym_info.py and first_diff.py map lookup issues (#1055)
Symbol names like qNaN0x3FFFFF were detected as new sections in the map, which broke lookups for some sections of the ROM
This commit is contained in:
parent
4390dd74b6
commit
21a92ab95f
2 changed files with 5 additions and 5 deletions
|
@ -93,7 +93,7 @@ def search_rom_address(target_addr):
|
|||
rom = ram - ram_offset
|
||||
sym = line.split()[-1]
|
||||
|
||||
if "0x" in sym:
|
||||
if sym.startswith("0x"):
|
||||
ram_offset = None
|
||||
continue
|
||||
if "/" in sym:
|
||||
|
@ -139,7 +139,7 @@ def parse_map(map_fname):
|
|||
rom = ram - ram_offset
|
||||
sym = line.split()[-1]
|
||||
|
||||
if "0x" in sym:
|
||||
if sym.startswith("0x"):
|
||||
ram_offset = None
|
||||
continue
|
||||
elif "/" in sym:
|
||||
|
|
|
@ -65,7 +65,7 @@ def search_address(target_addr):
|
|||
rom = ram - ram_offset
|
||||
sym = line.split()[-1]
|
||||
|
||||
if "0x" in sym:
|
||||
if sym.startswith("0x"):
|
||||
ram_offset = None
|
||||
continue
|
||||
if "/" in sym:
|
||||
|
@ -112,7 +112,7 @@ def search_symbol(target_sym):
|
|||
rom = ram - ram_offset
|
||||
sym = line.split()[-1]
|
||||
|
||||
if "0x" in sym:
|
||||
if sym.startswith("0x"):
|
||||
ram_offset = None
|
||||
continue
|
||||
elif "/" in sym:
|
||||
|
|
Loading…
Reference in a new issue