Fix: Mark nemu_ipc unavailable if emulator instance not found

This commit is contained in:
LmeSzinc 2024-04-14 01:06:04 +08:00
parent d67874ca68
commit 3e585ab8e7

View File

@ -462,7 +462,9 @@ class NemuIpc(Platform):
# Search emulator instance
# with E:\ProgramFiles\MuMuPlayer-12.0\shell\MuMuPlayer.exe
# installation path is E:\ProgramFiles\MuMuPlayer-12.0
_ = self.emulator_instance
if self.emulator_instance is None:
logger.error('Unable to use NemuIpc because emulator instance not found')
raise RequestHumanTakeover
try:
return NemuIpcImpl(
nemu_folder=self.emulator_instance.emulator.abspath('../'),