diff options
| author | IIMarckus <iimarckus@gmail.com> | 2013-09-02 17:38:12 -0600 |
|---|---|---|
| committer | IIMarckus <iimarckus@gmail.com> | 2013-09-02 17:38:12 -0600 |
| commit | 0fe8e003e4e0423a5eb016b093120429ce29ba51 (patch) | |
| tree | 475365c6d1dcc671306054b8614e7db5b5760d58 /extras | |
| parent | Merge pull request #2 from dannye/master (diff) | |
| parent | Update labels for consistency (diff) | |
| download | pokeyellow-0fe8e003e4e0423a5eb016b093120429ce29ba51.tar.gz pokeyellow-0fe8e003e4e0423a5eb016b093120429ce29ba51.tar.xz pokeyellow-0fe8e003e4e0423a5eb016b093120429ce29ba51.zip | |
Merge branch 'incbin' of https://github.com/dannye/pokered into dannye-incbin
Diffstat (limited to 'extras')
| -rw-r--r-- | extras/analyze_incbins.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extras/analyze_incbins.py b/extras/analyze_incbins.py index be3c1c6a..db503ff1 100644 --- a/extras/analyze_incbins.py +++ b/extras/analyze_incbins.py @@ -314,6 +314,11 @@ def get_labels_between(start_line_id, end_line_id, bank_id): if ": ; 0x" in line: temp = line.split(": ; 0x")[1] + + # just read until the comma appears + if "," in line: + temp = temp.split(",")[0] + if not " " in temp: address = int("0x" + temp, 16) else: |
