mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
load labels only once in gbz80disasm
This commit is contained in:
parent
5feb5fd208
commit
f10019710f
@ -557,6 +557,11 @@ call_commands = [0xdc, 0xd4, 0xc4, 0xcc, 0xcd]
|
||||
all_labels = {}
|
||||
def load_labels(filename="labels.json"):
|
||||
global all_labels
|
||||
|
||||
# don't re-load labels each time
|
||||
if all_labels != {}:
|
||||
return
|
||||
|
||||
if os.path.exists(filename):
|
||||
all_labels = json.read(open(filename, "r").read())
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user