1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-07-29 15:08:11 +08:00
This commit is contained in:
2026-07-25 18:01:51 +08:00
50 changed files with 773 additions and 762 deletions

View File

@@ -154,6 +154,12 @@ class Device(Screenshot, Control, AppControl, Input):
if not (self.is_emulator and self.is_ldplayer_bluestacks_family):
logger.warning('ScreenshotMethod ldopengl is available on LD Player only, fallback to auto')
self.config.Emulator_ScreenshotMethod = 'auto'
# DroidCast is available on SDK 23 (Android 6.0) to SDK 32 (Android 12)
if self.config.Emulator_ScreenshotMethod in ['DroidCast', 'DroidCast_raw']:
if self.sdk_ver < 23 or self.sdk_ver > 32:
logger.warning(f'ScreenshotMethod {self.config.Emulator_ScreenshotMethod} is available on '
f'Android 6.0 to 12 only (current sdk_ver={self.sdk_ver}), fallback to auto')
self.config.Emulator_ScreenshotMethod = 'auto'
if not IS_WINDOWS and self.config.Emulator_ScreenshotMethod in ['nemu_ipc', 'ldopengl']:
logger.warning(f'ScreenshotMethod {self.config.Emulator_ScreenshotMethod} is available on Windows only, '
f'fallback to auto')