shithub: pokered

ref: 79639ebe926204b119c85011e8bdc79b9d194feb
dir: /extras/generate_sys.py/

View raw version
import json

import analyze_incbins
analyze_incbins.scan_for_predefined_labels()

with open('../pokered.sym', 'w') as sym:
    for label in json.load(open('labels.json')):
        sym.write('{0:x}:{1} {2}\n'.format(label['bank_id'], label['local_pointer'][1:], label['label']))