1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-30 13:13:51 +08:00

Add: [ALAS] Support LDPlayer14

This commit is contained in:
LmeSzinc
2026-03-28 18:46:36 +08:00
parent b703cb10ea
commit 960db91be9
10 changed files with 18 additions and 5 deletions

View File

@@ -332,7 +332,7 @@ class LDOpenGL(Platform):
if not self.is_ldplayer_bluestacks_family:
return False
logger.attr('EmulatorInfo_Emulator', self.config.EmulatorInfo_Emulator)
if self.config.EmulatorInfo_Emulator not in ['LDPlayer9']:
if self.config.EmulatorInfo_Emulator not in ['LDPlayer9', 'LDPlayer14']:
return False
try:

View File

@@ -155,7 +155,8 @@ class EmulatorBase:
LDPlayer3 = 'LDPlayer3'
LDPlayer4 = 'LDPlayer4'
LDPlayer9 = 'LDPlayer9'
LDPlayerFamily = [LDPlayer3, LDPlayer4, LDPlayer9]
LDPlayer14 = 'LDPlayer14'
LDPlayerFamily = [LDPlayer3, LDPlayer4, LDPlayer9, LDPlayer14]
MuMuPlayer = 'MuMuPlayer'
MuMuPlayerX = 'MuMuPlayerX'
MuMuPlayer12 = 'MuMuPlayer12'

View File

@@ -110,6 +110,8 @@ class Emulator(EmulatorBase):
return cls.LDPlayer4
elif dir1 == 'ldplayer9':
return cls.LDPlayer9
elif dir1 == 'ldplayer14':
return cls.LDPlayer14
else:
return cls.LDPlayer3
if exe == 'nemuplayer.exe':
@@ -538,8 +540,11 @@ class EmulatorManager(EmulatorManagerBase):
exe.add(file)
# LDPlayer install path
for path in [r'SOFTWARE\leidian\ldplayer',
r'SOFTWARE\leidian\ldplayer9']:
for path in [
r'SOFTWARE\leidian\ldplayer',
r'SOFTWARE\leidian\ldplayer9',
r'SOFTWARE\leidian\ldplayer14',
]:
ld = self.get_install_dir_from_reg(path, 'InstallDir')
if ld:
ld = abspath(os.path.join(ld, './dnplayer.exe'))