summaryrefslogtreecommitdiff
path: root/oldStuff/3dlib/tmdl2c.py
diff options
context:
space:
mode:
Diffstat (limited to 'oldStuff/3dlib/tmdl2c.py')
-rwxr-xr-xoldStuff/3dlib/tmdl2c.py5
1 files changed, 5 insertions, 0 deletions
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)