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

16 lines
258 B
Python
Executable File

#!/usr/bin/env python2
import sys, os, os.path, struct
import pywii as wii
arc = open(sys.argv[1], "rb")
tag, fstoff, fstsize, dataoff = struct.unpack(">IIII16x",arc.read(0x20))
arc.seek(fstoff)
fst = arc.read(fstsize)
fst = wii.WiiFST(fst)
fst.show()