mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-09-26 13:22:57 -04:00
get_ram_label: Setup wram labels if they haven't been already.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user