hbc-FIX94/pywii/pywii-tools/arclist.py

16 lines
258 B
Python
Raw Normal View History

2016-11-30 10:57:03 +01:00
#!/usr/bin/env python2
2016-11-23 06:35:12 +01:00
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()