mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-21 02:05:35 +08:00
Fix: Allow nemu_ipc for screenshot only cuz bad swipes on slow PC
This commit is contained in:
@@ -102,20 +102,21 @@ class Device(Screenshot, Control, AppControl):
|
|||||||
# Set
|
# Set
|
||||||
with self.config.multi_set():
|
with self.config.multi_set():
|
||||||
self.config.Emulator_ScreenshotMethod = method
|
self.config.Emulator_ScreenshotMethod = method
|
||||||
if method == 'nemu_ipc':
|
# if method == 'nemu_ipc':
|
||||||
self.config.Emulator_ControlMethod = 'nemu_ipc'
|
# self.config.Emulator_ControlMethod = 'nemu_ipc'
|
||||||
|
|
||||||
def method_check(self):
|
def method_check(self):
|
||||||
"""
|
"""
|
||||||
Check combinations of screenshot method and control methods
|
Check combinations of screenshot method and control methods
|
||||||
"""
|
"""
|
||||||
# nemu_ipc should be together
|
# nemu_ipc should be together
|
||||||
if self.config.Emulator_ScreenshotMethod == 'nemu_ipc' and self.config.Emulator_ControlMethod != 'nemu_ipc':
|
# if self.config.Emulator_ScreenshotMethod == 'nemu_ipc' and self.config.Emulator_ControlMethod != 'nemu_ipc':
|
||||||
logger.warning('When using nemu_ipc, both screenshot and control should use nemu_ipc')
|
# logger.warning('When using nemu_ipc, both screenshot and control should use nemu_ipc')
|
||||||
self.config.Emulator_ControlMethod = 'nemu_ipc'
|
# self.config.Emulator_ControlMethod = 'nemu_ipc'
|
||||||
if self.config.Emulator_ScreenshotMethod != 'nemu_ipc' and self.config.Emulator_ControlMethod == 'nemu_ipc':
|
# if self.config.Emulator_ScreenshotMethod != 'nemu_ipc' and self.config.Emulator_ControlMethod == 'nemu_ipc':
|
||||||
logger.warning('When not using nemu_ipc, both screenshot and control should not use nemu_ipc')
|
# logger.warning('When not using nemu_ipc, both screenshot and control should not use nemu_ipc')
|
||||||
self.config.Emulator_ControlMethod = 'minitouch'
|
# self.config.Emulator_ControlMethod = 'minitouch'
|
||||||
|
pass
|
||||||
|
|
||||||
def handle_night_commission(self, daily_trigger='21:00', threshold=30):
|
def handle_night_commission(self, daily_trigger='21:00', threshold=30):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user