From 19a859ca51d847a99f7120f673cda71a2a3434cf Mon Sep 17 00:00:00 2001 From: sawakita Date: Mon, 1 Oct 2012 18:59:51 +0200 Subject: Improve error checking in the context of issue #27 Link to kanzures' guidelines for that issue: https://bitbucket.org/iimarckus/pokered/issue/27/analyze_incbinsscan_for_predifined_labels#comment-2068911 --- extras/gbz80disasm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extras/gbz80disasm.py') diff --git a/extras/gbz80disasm.py b/extras/gbz80disasm.py index 80d169e5..53198988 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 analyze_incbins.scan_for_predefined_labels() to create \"labels.json\". Trying..." + import analyze_incbins + analyze_incbins.scan_for_predefined_labels() load_labels() def find_label(local_address, bank_id=0): -- cgit v1.3.1-sl0p