3
2
forked from Dniel97/artemis

sao: fix temp responses

This commit is contained in:
Hay1tsme 2023-11-14 22:08:09 -05:00
parent 3d8ffaa098
commit e0aeb2ac21
2 changed files with 8 additions and 2 deletions

View File

@ -944,7 +944,7 @@ class SaoBase:
def handle_d5fe(self, header: SaoRequestHeader, request: bytes) -> bytes:
# master_data/get_m_gasha_medal_shop_items
return SaoNoopResponse(header.cmd + 1)
return SaoNoopResponse(header.cmd + 1).make()
def handle_d604(self, header: SaoRequestHeader, request: bytes) -> bytes:
# master_data_2/get_m_res_earn_campaign_shops
@ -970,4 +970,4 @@ class SaoBase:
def handle_d606(self, header: SaoRequestHeader, request: bytes) -> bytes:
# master_data_2/get_m_res_earn_campaign_shop_items
return SaoNoopResponse(header.cmd + 1)
return SaoNoopResponse(header.cmd + 1).make()

View File

@ -120,6 +120,12 @@ class SaoServlet(BaseServlet):
self.logger.debug(f"Request: {req_raw.hex()}")
resp = handler(req_header, req_data)
if resp is None:
resp = SaoNoopResponse(req_header.cmd + 1).make()
elif issubclass(resp, SaoBaseResponse):
resp = resp.make()
self.logger.debug(f"Response: {resp.hex()}")
if self.game_cfg.crypt.enable: