depace/patch/macwars-patchT.py

17 lines
247 B
Python
Executable File

#!/usr/bin/env python3
noops = [
[0x132e,0x1363]
]
fh=open("T.bin","r+b")
for myrange in noops:
i=myrange[0]+0x80
while i<=(myrange[1]+0x80):
fh.seek(i)
fh.write((0x4e71).to_bytes(2,'big'))
i+=2
fh.close()