ref: f10019710f70f855beaa67c1170337e28cc7a57f
parent: 5feb5fd208d68a3d8f4d0ce4d925512a8fbe3b97
author: Bryan Bishop <[email protected]>
date: Fri May 17 11:58:47 EDT 2013
load labels only once in gbz80disasm
--- a/extras/gbz80disasm.py
+++ b/extras/gbz80disasm.py
@@ -557,6 +557,11 @@
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: