mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 22:08:20 +08:00
Fix: Temp fix for MuMu 12 before DroidCast updated (#2952)
This commit is contained in:
@@ -31,6 +31,10 @@ class Device(Screenshot, Control, AppControl, EmulatorManager):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.screenshot_interval_set()
|
||||
|
||||
# Temp fix for MuMu 12 before DroidCast updated
|
||||
if self.serial.startswith('127.0.0.1:755') or self.serial.startswith('127.0.0.1:16'):
|
||||
logger.info('Patching screenshot method for mumu')
|
||||
self.config.override(Emulator_ScreenshotMethod='ADB_nc')
|
||||
# Auto-select the fastest screenshot method
|
||||
if not self.config.is_template_config and self.config.Emulator_ScreenshotMethod == 'auto':
|
||||
self.run_simple_screenshot_benchmark()
|
||||
|
||||
Reference in New Issue
Block a user