]> icculus.org git repositories - theoddone33/hheretic.git/blob - dumpwad.py
Just playing around... or am I?
[theoddone33/hheretic.git] / dumpwad.py
1
2 import sys
3 import pyhexen.wad as wad
4
5 myWad = wad.wad()
6
7 print ("Loading wads...")
8 myWad.InitMultipleFiles (sys.argv[1:])
9
10 print ("Dumping wad contents...")
11
12 for (handle, pos, len, name) in myWad.lumps:
13         print ("Found '%s' ('%s' offset %d, length %d)" % (name, handle.name, pos, len))