mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-04 15:04:31 +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:
parent
4a64c556b0
commit
f2ead7f2c9
2 changed files with 494 additions and 1 deletions
|
@ -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()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue