mirror of
https://github.com/FIX94/hbc.git
synced 2024-11-22 02:29:19 +01:00
4cf05be0ff
-added wiiu gamepad compatibility when booting from wii vc with patched fw.img using libwiidrc -removed upper file limit from wiiload (useful when used with wiiu homebrew launcher)
12 lines
267 B
Python
Executable File
12 lines
267 B
Python
Executable File
#!/usr/bin/env python2
|
|
import sys
|
|
import re
|
|
import pywii as wii
|
|
|
|
hash = wii.SHA.new(open(sys.argv[2],"rb").read()).digest().encode("hex")
|
|
f = open(sys.argv[1], "rb")
|
|
data = f.read()
|
|
f.close()
|
|
data = re.sub('@SHA1SUM@', hash, data)
|
|
open(sys.argv[3], "wb").write(data)
|