summaryrefslogtreecommitdiff
path: root/3dlib/tmdl2c.py
blob: 1a6bdc57c9c2c0eb74b2a6838053b57058f12a42 (plain)
1
2
3
4
5
import sys
f = open(sys.argv[1], 'rb').read()
f = map(lambda x:'0x%02x' % ord(x), f)
f = ','.join(f)
open(sys.argv[1] + '.txt', 'w').write(f)