1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-11 11:49:24 +00:00
oot/tools/overlayhelpers/batchdisasm/batchdisasm.py

18 lines
499 B
Python
Raw Normal View History

2020-03-17 04:31:30 +00:00
import os
overlayListFile = open("overlays.cfg")
overlayListLines = overlayListFile.readlines()
for line in overlayListLines:
overlayName = line.split(' ')[0]
overlayVRAM = int(line.split(' ')[1], 16)
#print(overlayName)
overlaySize = os.path.getsize("../../../baserom/" + overlayName)
execStr = "./mipsdisasm -o output/%s.s ../../../baserom/%s 0x%x:0x%x -v -p" % (overlayName, overlayName, overlayVRAM, overlayVRAM + overlaySize)
print(execStr)
os.system(execStr)