fix(task): 修复 DMM 上由于输出分辨率到日志中导致的启动失败问题
原因是获取分辨率时对于 DMM 版,还没有启动游戏,会抛出找不到窗口的异常。
This commit is contained in:
parent
f929046ae2
commit
4deea1d644
|
@ -146,7 +146,6 @@ class Kaa(KotoneBot):
|
|||
raise ValueError('Backend instance is not set.')
|
||||
_set_instance(self.backend_instance)
|
||||
from kotonebot import device
|
||||
logger.info('Device resolution: %s', device.screen_size)
|
||||
logger.info('Set target resolution to 720x1280.')
|
||||
device.orientation = 'portrait'
|
||||
device.target_resolution = (720, 1280)
|
||||
|
|
Loading…
Reference in New Issue