summaryrefslogtreecommitdiff
path: root/3dlib/tmdl2c.py
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-03-12 23:17:12 +0100
committerTreeki <treeki@gmail.com>2011-03-12 23:17:12 +0100
commit7d4e4c0b34a613dd3c0220475ae4e448197522c1 (patch)
tree4f5cee367de3fdef4f9a7c84af59ffe76a2bb1c3 /3dlib/tmdl2c.py
downloadkamek-7d4e4c0b34a613dd3c0220475ae4e448197522c1.tar.gz
kamek-7d4e4c0b34a613dd3c0220475ae4e448197522c1.zip
initial commit. now I can start playing with stuff!
Diffstat (limited to '')
-rwxr-xr-x3dlib/tmdl2c.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/3dlib/tmdl2c.py b/3dlib/tmdl2c.py
new file mode 100755
index 0000000..1a6bdc5
--- /dev/null
+++ b/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)