mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-11 07:44:47 +13:00
tool to sort INCBINs by interval length
hg-commit-id: 3d687a971202
This commit is contained in:
parent
25df78ecf3
commit
f4b8782536
|
|
@ -416,6 +416,24 @@ def write_all_labels(all_labels):
|
||||||
fh.write(json.dumps(all_labels))
|
fh.write(json.dumps(all_labels))
|
||||||
fh.close()
|
fh.close()
|
||||||
|
|
||||||
|
def analyze_intervals():
|
||||||
|
"""find the largest baserom.gbc intervals"""
|
||||||
|
global asm
|
||||||
|
global processed_incbins
|
||||||
|
if asm == None:
|
||||||
|
load_asm()
|
||||||
|
if processed_incbins == {}:
|
||||||
|
isolate_incbins()
|
||||||
|
process_incbins()
|
||||||
|
|
||||||
|
results = []
|
||||||
|
ordered_keys = sorted(processed_incbins, key=lambda entry: processed_incbins[entry]["interval"])
|
||||||
|
ordered_keys.reverse()
|
||||||
|
for key in ordered_keys:
|
||||||
|
results.append(processed_incbins[key])
|
||||||
|
|
||||||
|
return results
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
#load map headers
|
#load map headers
|
||||||
load_rom()
|
load_rom()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue