Reuse .on_response/.__str__/.stringify, override iff necessary

This commit is contained in:
Lonami Exo
2018-01-19 12:12:52 +01:00
parent f6d98a61cf
commit 33e50aaee1
3 changed files with 33 additions and 13 deletions

View File

@@ -133,6 +133,8 @@ class BinaryReader:
return True
elif value == 0xbc799737: # boolFalse
return False
elif value == 0x1cb5c415: # Vector
return [self.tgread_object() for _ in range(self.read_int())]
# If there was still no luck, give up
self.seek(-4) # Go back