mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-26 02:04:18 +00:00
17 lines
499 B
Python
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)
|