summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--readers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/readers.py b/readers.py
index 028f5c4..74ee0a8 100644
--- a/readers.py
+++ b/readers.py
@@ -24,6 +24,10 @@ class ByteReader:
24 self.o += n 24 self.o += n
25 return self.data[self.o-n:self.o] 25 return self.data[self.o-n:self.o]
26 26
27 def readlongstring(self):
28 namelen = self.readdword()
29 return self.readbytes(namelen).decode('cp1251')
30
27 def readname(self): 31 def readname(self):
28 namelen = self.readbyte() 32 namelen = self.readbyte()
29 return self.readbytes(namelen).decode('cp1251') 33 return self.readbytes(namelen).decode('cp1251')