hbc-FIX94/pywii/pywii-tools/tikfix.py
2016-11-30 18:57:03 +09:00

18 lines
292 B
Python
Executable File

#!/usr/bin/env python2
import sys, os, os.path
import pywii as wii
wii.loadkeys()
tikfile = sys.argv[1]
print "fixing Tik file %s " % tikfile
tik = wii.WiiTik(open(tikfile, "rb").read())
tik.null_signature()
tik.brute_sha()
tik.update()
f = open(tikfile,"wb")
f.write(tik.data)
f.close()