#----------------------------------------------------------------------
# Copyright (C) 2009 zc00gii
#
# Wii.py (c) Xuzz, SquidMan, megazig, TheLemonMan, |Omega, and Matt_P.
#----------------------------------------------------------------------
import os, sys, Wii
def wadpack(waddir, wadfile):
Wii.WAD.loadDir(waddir).dumpFile(wadfile)
print "WAD packed successfully"
def wadunpack(wadfile,waddir):
Wii.WAD.loadFile(wadfile).dumpDir(waddir)
print "WAD unpacked successfully"
if(len(sys.argv) < 4):
print "Usage: python wadtool.py [option]