mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: [ALAS] nemuipc lib might be None
This commit is contained in:
parent
0ab6d50656
commit
1764aef553
@ -226,7 +226,7 @@ class NemuIpcImpl:
|
||||
# MuMuPlayer12 5.0
|
||||
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:
|
||||
if not os.path.exists(ipc_dll):
|
||||
continue
|
||||
@ -237,7 +237,7 @@ class NemuIpcImpl:
|
||||
logger.error(e)
|
||||
logger.error(f'ipc_dll={ipc_dll} exists, but cannot be loaded')
|
||||
continue
|
||||
if not ipc_dll:
|
||||
if self.lib is None:
|
||||
# not found
|
||||
raise NemuIpcIncompatible(
|
||||
f'NemuIpc requires MuMu12 version >= 3.8.13, please check your version. '
|
||||
|
||||
Loading…
Reference in New Issue
Block a user