From 25528203fe9b26d834c905087e779f9276d5423f Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Mon, 13 Nov 2023 17:31:23 -0500 Subject: [PATCH] sao: fix encoder helpers --- titles/sao/handlers/helpers.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/titles/sao/handlers/helpers.py b/titles/sao/handlers/helpers.py index f669c7c..b6426a0 100644 --- a/titles/sao/handlers/helpers.py +++ b/titles/sao/handlers/helpers.py @@ -79,19 +79,19 @@ def decode_arr_str(data: bytes, offset: int) -> Tuple[List[str], int]: return (ret, size) def encode_byte(data: int) -> bytes: - return struct.pack("!B", data) + return struct.pack("!b", data) def encode_short(data: int) -> bytes: - return struct.pack("!H", data) + return struct.pack("!h", data) def encode_int(data: int) -> bytes: - return struct.pack("!I", data) + return struct.pack("!i", data) def encode_long(data: int) -> bytes: - return struct.pack("!L", data) + return struct.pack("!l", data) def encode_bigint(data: int) -> bytes: - return struct.pack("!Q", data) + return struct.pack("!q", data) def encode_str(s: str) -> bytes: try: