fix: handle nemu ipc lib being none

This commit is contained in:
2026-07-06 22:40:56 +08:00
parent ed6370b9f9
commit 380b1f9e6e
+2 -2
View File
@@ -226,7 +226,7 @@ class NemuIpcImpl:
# MuMuPlayer12 5.0 # MuMuPlayer12 5.0
os.path.abspath(os.path.join(nemu_folder, './nx_device/12.0/shell/sdk/external_renderer_ipc.dll')), os.path.abspath(os.path.join(nemu_folder, './nx_device/12.0/shell/sdk/external_renderer_ipc.dll')),
] ]
ipc_dll = '' self.lib = None
for ipc_dll in list_dll: for ipc_dll in list_dll:
if not os.path.exists(ipc_dll): if not os.path.exists(ipc_dll):
continue continue
@@ -237,7 +237,7 @@ class NemuIpcImpl:
logger.error(e) logger.error(e)
logger.error(f'ipc_dll={ipc_dll} exists, but cannot be loaded') logger.error(f'ipc_dll={ipc_dll} exists, but cannot be loaded')
continue continue
if not ipc_dll: if self.lib is None:
# not found # not found
raise NemuIpcIncompatible( raise NemuIpcIncompatible(
f'NemuIpc requires MuMu12 version >= 3.8.13, please check your version. ' f'NemuIpc requires MuMu12 version >= 3.8.13, please check your version. '