generate labels.json automagically in gbz80disasm

original-commit-id: e1ff7f98def8810aa61814eddcce6b96ae0bd643
This commit is contained in:
Bryan Bishop
2012-09-10 22:29:59 -05:00
parent 689a501e97
commit 756b886fe2

View File

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