fix(task): 修复 DMM 版启动游戏的过程中无法中断的问题

This commit is contained in:
XcantloadX 2025-07-26 04:54:19 +08:00
parent b07d4d3d23
commit ceaaed7896
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ from .actions.scenes import at_home, goto_home
from .actions.commu import handle_unread_commu
from kotonebot.errors import GameUpdateNeededError
from kotonebot import task, action, sleep, device, image, ocr, config
from kotonebot.backend.context.context import vars
logger = logging.getLogger(__name__)
@ -170,6 +171,7 @@ def windows_launch():
# 等待游戏窗口出现
it = Interval()
while True:
vars.flow.check()
if ahk.find_window(title='gakumas', title_match_mode=3):
logger.debug('Game window found.')
break