get_ram_label: Setup wram labels if they haven't been already.

This commit is contained in:
yenatch 2014-03-23 02:14:46 -04:00
parent de39f7c6ff
commit 943e7b704f

View File

@ -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