mirror of https://github.com/pret/pokecrystal.git
crystal: wram label finding
This commit is contained in:
parent
17b5e86311
commit
daf3930984
|
@ -7353,15 +7353,15 @@ def write_all_labels(all_labels, filename="labels.json"):
|
||||||
fh.close()
|
fh.close()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# TODO: implement get_ram_label
|
from wram import wram_labels
|
||||||
# wram.asm integration would be nice
|
|
||||||
def get_ram_label(address):
|
def get_ram_label(address):
|
||||||
"""not implemented yet.. supposed to get a label for a particular RAM location
|
"""returns a label assigned to a particular ram address"""
|
||||||
like W_PARTYPOKE1HP"""
|
if address in wram_labels.keys():
|
||||||
|
return wram_labels[address][-1]
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def get_label_for(address):
|
def get_label_for(address):
|
||||||
"""returns a label assigned to a particular address"""
|
"""returns a label assigned to a particular rom address"""
|
||||||
global all_labels
|
global all_labels
|
||||||
|
|
||||||
if address == None:
|
if address == None:
|
||||||
|
|
Loading…
Reference in New Issue