From 543dd27e0e1d3180d8ac90e0b58e8cd719224606 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sun, 15 Sep 2024 02:22:39 +0800 Subject: [PATCH] Opt: [ALAS] Skip trying nemu_ipc on MuMu Global --- module/device/method/nemu_ipc.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/device/method/nemu_ipc.py b/module/device/method/nemu_ipc.py index 0fde50d51..86948783a 100644 --- a/module/device/method/nemu_ipc.py +++ b/module/device/method/nemu_ipc.py @@ -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('../'),