From cf1da451aa567a55e488c259748d95b6e6f8007b Mon Sep 17 00:00:00 2001 From: engineer124 <47598039+engineer124@users.noreply.github.com> Date: Tue, 11 May 2021 08:47:30 +1000 Subject: [PATCH] Update actor symbols (#124) * update actor symbols * switch to baserom directory Co-authored-by: Jared Collette --- tools/overlayhelpers/actor_symbols.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/overlayhelpers/actor_symbols.py b/tools/overlayhelpers/actor_symbols.py index f1bf51f0fc..35428db479 100755 --- a/tools/overlayhelpers/actor_symbols.py +++ b/tools/overlayhelpers/actor_symbols.py @@ -710,7 +710,7 @@ def null_or_ptr(w): # (name, vrom_st, vrom_end, vram_st, vram_end) def read_actor_ovl_tbl(): actortbl = [] - with open(repo + "decomp/code","rb") as codefile: + with open(repo + "baserom/code","rb") as codefile: codefile.seek(0x109510) # actor overlay table offset into code entry = as_word_list(codefile.read(0x20)) i = 0 @@ -730,10 +730,10 @@ def resolve_symbol(address): for entry in actor_tbl: if address >= 0x80000000: if entry[3] <= address < entry[4]: - return repo + "decomp" + os.sep + entry[0], address - entry[3] + return repo + "baserom/overlays" + os.sep + entry[0], address - entry[3] else: if entry[1] <= address < entry[2]: - return repo + "decomp" + os.sep + entry[0], address - entry[1] + return repo + "baserom/overlays" + os.sep + entry[0], address - entry[1] else: return None, None