aboutsummaryrefslogtreecommitdiff
path: root/write-brlyt.py
diff options
context:
space:
mode:
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