mirror of
https://github.com/grp/Wii.py.git
synced 2025-06-18 23:05:48 -04:00
Using exceptions now...
This commit is contained in:
parent
079f82ee7f
commit
d2db117aa1
12
TPL.py
12
TPL.py
@ -128,26 +128,22 @@ class TPL():
|
|||||||
elif format == "CI4":
|
elif format == "CI4":
|
||||||
texhead.format = 8
|
texhead.format = 8
|
||||||
''' ADD toCI4 '''
|
''' ADD toCI4 '''
|
||||||
print "toCI4 not done"
|
raise Exception("toCI4 not done")
|
||||||
sys.exit(2)
|
|
||||||
#tpldata = self.toCI4((w, h), img)
|
#tpldata = self.toCI4((w, h), img)
|
||||||
elif format == "CI8":
|
elif format == "CI8":
|
||||||
texhead.format = 8
|
texhead.format = 8
|
||||||
''' ADD toCI8 '''
|
''' ADD toCI8 '''
|
||||||
print "toCI8 not done"
|
raise Exception("toCI8 not done")
|
||||||
sys.exit(2)
|
|
||||||
#tpldata = self.toCI8((w, h), img)
|
#tpldata = self.toCI8((w, h), img)
|
||||||
elif format == "CI14X2":
|
elif format == "CI14X2":
|
||||||
texhead.format = 10
|
texhead.format = 10
|
||||||
''' ADD toCI14X2 '''
|
''' ADD toCI14X2 '''
|
||||||
print "toCI14X2 not done"
|
raise Exception("toCI14X2 not done")
|
||||||
sys.exit(2)
|
|
||||||
#tpldata = self.toCI14X2((w, h), img)
|
#tpldata = self.toCI14X2((w, h), img)
|
||||||
elif format == "CMP":
|
elif format == "CMP":
|
||||||
texhead.format = 14
|
texhead.format = 14
|
||||||
''' ADD toCMP '''
|
''' ADD toCMP '''
|
||||||
print "toCMP not done"
|
raise Exception("toCMP not done")
|
||||||
sys.exit(2)
|
|
||||||
#tpldata = self.toCMP((w, h), img)
|
#tpldata = self.toCMP((w, h), img)
|
||||||
texhead.data_off = 0x14 + len(texhead)
|
texhead.data_off = 0x14 + len(texhead)
|
||||||
texhead.wrap = [0, 0]
|
texhead.wrap = [0, 0]
|
||||||
|
Loading…
Reference in New Issue
Block a user