mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-06-23 16:10:24 -05:00
get_ram_label: Setup wram labels if they haven't been already.
This commit is contained in:
parent
de39f7c6ff
commit
943e7b704f
|
|
@ -7061,6 +7061,8 @@ def get_ram_label(address):
|
|||
"""
|
||||
returns a label assigned to a particular ram address
|
||||
"""
|
||||
if not hasattr(wram, "wram_labels"):
|
||||
setup_wram_labels()
|
||||
if address in wram.wram_labels.keys():
|
||||
return wram.wram_labels[address][-1]
|
||||
return None
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user