コード例 #1
0
def load_labels(filename="labels.json"):
    global all_labels
    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\". Trying..."
        import analyze_incbins
        analyze_incbins.scan_for_predefined_labels()
コード例 #2
0
def load_labels(filename="labels.json"):
    global all_labels
    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\". Trying..."
        import analyze_incbins
        analyze_incbins.scan_for_predefined_labels()
コード例 #3
0
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']))
コード例 #4
0
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']))