1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 12:08:21 +08:00

Opt: [ALAS] Skip trying nemu_ipc on MuMu Global

This commit is contained in:
LmeSzinc
2024-09-15 02:22:39 +08:00
parent cccee9cc2c
commit afb6015286

View File

@@ -469,6 +469,9 @@ class NemuIpc(Platform):
"""
# Try existing settings first
if self.config.EmulatorInfo_path:
if 'MuMuPlayerGlobal' in self.config.EmulatorInfo_path:
logger.info(f'nemu_ipc is not available on MuMuPlayerGlobal, {self.config.EmulatorInfo_path}')
raise RequestHumanTakeover
folder = os.path.abspath(os.path.join(self.config.EmulatorInfo_path, '../../'))
index = NemuIpcImpl.serial_to_id(self.serial)
if index is not None:
@@ -488,6 +491,9 @@ class NemuIpc(Platform):
if self.emulator_instance is None:
logger.error('Unable to use NemuIpc because emulator instance not found')
raise RequestHumanTakeover
if 'MuMuPlayerGlobal' in self.emulator_instance.path:
logger.info(f'nemu_ipc is not available on MuMuPlayerGlobal, {self.emulator_instance.path}')
raise RequestHumanTakeover
try:
return NemuIpcImpl(
nemu_folder=self.emulator_instance.emulator.abspath('../'),