1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-19 07:13:34 +08:00

Fix: Watch device orientate when starting app

- Opt: Skip screen size check at the first screenshot when game is not started
This commit is contained in:
LmeSzinc
2022-03-06 16:52:43 +08:00
parent 022acd336a
commit 1ad23dbe90
4 changed files with 25 additions and 16 deletions

View File

@@ -178,6 +178,9 @@ class Screenshot(Adb, Uiautomator2, AScreenCap):
self.image = self._handle_orientated_image(self.image)
orientated = True
continue
elif hasattr(self, 'app_is_running') and not self.app_is_running():
logger.warning('Received orientated screenshot, game not running')
return True
else:
logger.critical(f'Resolution not supported: {width}x{height}')
logger.critical('Please set emulator resolution to 1280x720')