From 59b2401a672c33db61baf59e0952d161c6b9a98d Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Sun, 5 Mar 2023 09:43:05 -0500 Subject: [PATCH] mucha: add updatecheck response stub --- core/mucha.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/mucha.py b/core/mucha.py index b85b535..cdfadd1 100644 --- a/core/mucha.py +++ b/core/mucha.py @@ -77,7 +77,8 @@ class MuchaServlet: self.logger.warn(f"Unknown gameCd {req.gameCd}") return b"" - resp = MuchaUpdateResponse(req.gameVer, f"{self.config.mucha.hostname}{':' + self.config.mucha.port if self.config.server.is_develop else ''}") + #resp = MuchaUpdateResponse(req.gameVer, f"{self.config.mucha.hostname}{':' + self.config.mucha.port if self.config.server.is_develop else ''}") + resp = MuchaUpdateResponseStub(req.gameVer) self.logger.debug(f"Mucha response {vars(resp)}") @@ -190,3 +191,8 @@ class MuchaUpdateResponse(): self.COM_SIZE_1 = "0" self.COM_TIME_1 = "0" self.LAN_INFO_SIZE_1 = "0" + +class MuchaUpdateResponseStub(): + def __init__(self, game_ver: str) -> None: + self.RESULTS = "001" + self.UPDATE_VER_1 = game_ver