hbc-FIX94/channel/banner/tools/addimd5.py
FIX94 4cf05be0ff
-changed a bunch to make it compile on windows (MSYS2)
-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)
2017-10-08 01:59:33 +02:00

14 lines
226 B
Python

import md5, sys, struct
data= open(sys.argv[1],"rb").read()
digest = md5.new(data).digest()
hdr = struct.pack(">4sI8x","IMD5",len(data))
f2 = open(sys.argv[2],"wb")
f2.write(hdr)
f2.write(digest)
f2.write(data)
f2.close()