1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-04-09 04:43:31 +08:00

Opt: [ALAS] handle first screenshot in loop()

This commit is contained in:
LmeSzinc
2025-10-22 01:11:33 +08:00
parent d12bd1598e
commit 01b3dc2369

View File

@@ -146,6 +146,10 @@ class ModuleBase:
skip_first = False skip_first = False
else: else:
self.device.screenshot() self.device.screenshot()
try:
yield self.device.image
except AttributeError:
self.device.screenshot()
yield self.device.image yield self.device.image
def loop_hierarchy(self, skip_first=True): def loop_hierarchy(self, skip_first=True):