From 7d4e4c0b34a613dd3c0220475ae4e448197522c1 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 12 Mar 2011 23:17:12 +0100 Subject: initial commit. now I can start playing with stuff! --- oldStuff/3dlib/tmdl2c.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 oldStuff/3dlib/tmdl2c.py (limited to 'oldStuff/3dlib/tmdl2c.py') diff --git a/oldStuff/3dlib/tmdl2c.py b/oldStuff/3dlib/tmdl2c.py new file mode 100755 index 0000000..1a6bdc5 --- /dev/null +++ b/oldStuff/3dlib/tmdl2c.py @@ -0,0 +1,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) -- cgit v1.2.3