1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-03 22:44:30 +00:00

Add cutscene disassembler script (#235)

* Add cutscene disassembler script

* Add more debug info

* Use addresses instead of already disassembled data, emit array declaration
This commit is contained in:
Tharo 2020-07-04 00:01:57 +01:00 committed by GitHub
parent 4a64c556b0
commit f2ead7f2c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 494 additions and 1 deletions

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python3
import os
import struct
import json
@ -119,7 +120,7 @@ def GetFromRom(addr):
return FileResult(key, vrom, None, offset)
#CreateTable()
with open("filetable.json", "r") as table:
with open(os.path.join(os.path.dirname(__file__), 'filetable.json'), "r") as table:
table = json.load(table)
table["va"] = {int(k):v for k,v in table["va"].items()}
table["ra"] = {int(k):v for k,v in table["ra"].items()}