From e1ff7f98def8810aa61814eddcce6b96ae0bd643 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Mon, 10 Sep 2012 22:29:59 -0500 Subject: [PATCH] generate labels.json automagically in gbz80disasm --- extras/gbz80disasm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extras/gbz80disasm.py b/extras/gbz80disasm.py index eb7f767a0..b9ddc17fd 100644 --- a/extras/gbz80disasm.py +++ b/extras/gbz80disasm.py @@ -561,7 +561,9 @@ def load_labels(filename="labels.json"): if os.path.exists(filename): all_labels = json.loads(open(filename, "r").read()) else: - print "You must run analyze_incbins.scan_for_predefined_labels() to create \"labels.json\"." + print "You must run crystal.scan_for_predefined_labels() to create \"labels.json\". Trying..." + import crystal + crystal.scan_for_predefined_labels() def find_label(local_address, bank_id=0): return None