mirror of
https://github.com/pmret/papermario.git
synced 2024-11-10 04:52:34 +01:00
update disasm_script.py for new symbol_addrs.txt format
This commit is contained in:
parent
adf6b96cf9
commit
5890d885ee
@ -38,7 +38,9 @@ def script_lib():
|
|||||||
# symbol_addrs.txt
|
# symbol_addrs.txt
|
||||||
with open(Path(path.dirname(__file__), "symbol_addrs.txt"), "r") as file:
|
with open(Path(path.dirname(__file__), "symbol_addrs.txt"), "r") as file:
|
||||||
for line in file.readlines():
|
for line in file.readlines():
|
||||||
s = line.split(";")
|
line = line.split(";")[0]
|
||||||
|
|
||||||
|
s = [s.strip() for s in line.split("=", 1)]
|
||||||
name = s[0]
|
name = s[0]
|
||||||
addr = s[1]
|
addr = s[1]
|
||||||
_script_lib[int(addr, 16)] = name
|
_script_lib[int(addr, 16)] = name
|
||||||
|
Loading…
Reference in New Issue
Block a user