1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-04-05 17:51:00 +08:00

Fix: Emulator scanning when LD player is not installed

This commit is contained in:
LmeSzinc
2022-10-01 15:55:27 +08:00
parent c0c5e8822a
commit 886c7e1d44

View File

@@ -351,8 +351,9 @@ class EmulatorManager:
for path in [r'SOFTWARE\leidian\ldplayer', for path in [r'SOFTWARE\leidian\ldplayer',
r'SOFTWARE\leidian\ldplayer9']: r'SOFTWARE\leidian\ldplayer9']:
ld = self.get_install_dir_from_reg(path, 'InstallDir') ld = self.get_install_dir_from_reg(path, 'InstallDir')
if ld:
ld = abspath(os.path.join(ld, './dnplayer.exe')) ld = abspath(os.path.join(ld, './dnplayer.exe'))
if ld and Emulator.is_emulator(ld) and os.path.exists(ld): if Emulator.is_emulator(ld) and os.path.exists(ld):
exe.add(ld) exe.add(ld)
# Uninstall registry # Uninstall registry