mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-10-07 14:28:16 +03:00
Add decopmressed encoding; add decompressed test cases
This commit is contained in:
committed by
Jennifer Taylor
parent
036bf1ce20
commit
224ed0e2a8
@@ -23,6 +23,7 @@ class EAmuseProtocol:
|
||||
|
||||
XML: Final[int] = 1
|
||||
BINARY: Final[int] = 2
|
||||
BINARY_DECOMPRESSED: Final[int] = 3
|
||||
|
||||
SHIFT_JIS_LEGACY: Final[str] = "shift-jis-legacy"
|
||||
SHIFT_JIS: Final[str] = "shift-jis"
|
||||
@@ -214,6 +215,10 @@ class EAmuseProtocol:
|
||||
# It's binary, encode it
|
||||
binary = BinaryEncoding()
|
||||
return binary.encode(tree, encoding=text_encoding)
|
||||
elif packet_encoding == EAmuseProtocol.BINARY_DECOMPRESSED:
|
||||
# It's binary, encode it
|
||||
binary = BinaryEncoding()
|
||||
return binary.encode(tree, encoding=text_encoding, compressed=False)
|
||||
elif packet_encoding == EAmuseProtocol.XML:
|
||||
# It's XML, encode it
|
||||
xml = XmlEncoding()
|
||||
|
||||
Reference in New Issue
Block a user