mirror of
https://github.com/sui-feng-cb/AzurLaneAutoScript1.git
synced 2026-07-28 22:59:05 +08:00
Opt: [ALAS] Fallback to auto if using droidcast on higher android version
This commit is contained in:
@@ -153,6 +153,12 @@ class Device(Screenshot, Control, AppControl):
|
||||
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')
|
||||
|
||||
Reference in New Issue
Block a user