aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2009-02-21 19:32:52 -0500
committercomex <comexk@gmail.com>2009-02-21 19:32:52 -0500
commit598404cf27a969e875605ea08edbe5d8b2213642 (patch)
tree7ccecf3fff843c2be00ee0163fbcfecc32577bec
parenta9f57c4055b2fb641285ae835f6c0e5340c6dbd7 (diff)
completely identical
Diffstat (limited to '')
-rw-r--r--write-brlyt.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/write-brlyt.py b/write-brlyt.py
index 3b217ad..13b3d32 100644
--- a/write-brlyt.py
+++ b/write-brlyt.py
@@ -49,9 +49,11 @@ for c in chunks:
strings = ''
offss = []
for thing in ls:
- name = untv(thing['name'])
+ name = thing['name'] + '\x00'
offss.append(len(strings))
strings += name
+ while len(strings) % 4 != 0: # todo: replace with something better
+ strings += '\0'
for n, thing in enumerate(ls):
chunk += struct.pack('>II', offss[n] + 8 * len(ls), thing['unk'])
chunk += strings