sao: hotfix

This commit is contained in:
Hay1tsme 2023-11-14 22:11:24 -05:00
parent e0aeb2ac21
commit 328f64ad8a

View File

@ -123,9 +123,16 @@ class SaoServlet(BaseServlet):
if resp is None:
resp = SaoNoopResponse(req_header.cmd + 1).make()
if type(resp) == bytes:
pass
elif issubclass(resp, SaoBaseResponse):
resp = resp.make()
else:
self.logger.error(f"Unknown response type {type(resp)}")
return b""
self.logger.debug(f"Response: {resp.hex()}")
if self.game_cfg.crypt.enable: