Fixed replay length (it is not ULEB)

This commit is contained in:
2019-03-17 02:57:48 +01:00
parent fc5bd5dc00
commit 15c80aae66
5 changed files with 43 additions and 24 deletions

View File

@@ -1,10 +1,9 @@
SSH = 0
SH = 1
SS = 2
S = 3
A = 4
B = 5
C = 6
D = 7
F = 8
N = 9
SSH = b"XH"
SH = b"SH"
SS = b"X"
S = b"S"
A = b"A"
B = b"B"
C = b"C"
D = b"D"
F = b"F"

View File

@@ -105,6 +105,7 @@ class Serializable:
def pack(self, byte_order = BYTEORDER_LITTLE):
struct_fmt = byte_order + self.get_struct_fmt()
#print(struct_fmt, self.get_value())
return struct.pack(struct_fmt, *self.get_value())
class Serializer: