mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-12 12:33:35 +08:00
Fix: [ALAS] nemuipc lib might be None
This commit is contained in:
@@ -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. '
|
||||||
|
|||||||
Reference in New Issue
Block a user