1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-29 12:04:29 +00:00
oot/tools/overlayhelpers/batchdisasm/batchdisasm.py
2020-03-17 00:31:30 -04:00

17 lines
499 B
Python

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)