mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-29 15:07:14 +08:00
Add: [ALAS] Support LDPlayer14
This commit is contained in:
@@ -161,6 +161,7 @@
|
||||
"LDPlayer3",
|
||||
"LDPlayer4",
|
||||
"LDPlayer9",
|
||||
"LDPlayer14",
|
||||
"MuMuPlayer",
|
||||
"MuMuPlayerX",
|
||||
"MuMuPlayer12",
|
||||
|
||||
@@ -69,6 +69,7 @@ EmulatorInfo:
|
||||
LDPlayer3,
|
||||
LDPlayer4,
|
||||
LDPlayer9,
|
||||
LDPlayer14,
|
||||
MuMuPlayer,
|
||||
MuMuPlayerX,
|
||||
MuMuPlayer12,
|
||||
|
||||
@@ -27,7 +27,7 @@ class GeneratedConfig:
|
||||
Emulator_AdbRestart = False
|
||||
|
||||
# Group `EmulatorInfo`
|
||||
EmulatorInfo_Emulator = 'auto' # auto, NoxPlayer, NoxPlayer64, BlueStacks4, BlueStacks5, BlueStacks4HyperV, BlueStacks5HyperV, LDPlayer3, LDPlayer4, LDPlayer9, MuMuPlayer, MuMuPlayerX, MuMuPlayer12, MEmuPlayer
|
||||
EmulatorInfo_Emulator = 'auto' # auto, NoxPlayer, NoxPlayer64, BlueStacks4, BlueStacks5, BlueStacks4HyperV, BlueStacks5HyperV, LDPlayer3, LDPlayer4, LDPlayer9, LDPlayer14, MuMuPlayer, MuMuPlayerX, MuMuPlayer12, MEmuPlayer
|
||||
EmulatorInfo_name = None
|
||||
EmulatorInfo_path = None
|
||||
|
||||
@@ -202,6 +202,7 @@ class GeneratedConfig:
|
||||
# Group `AddNewStudent`
|
||||
AddNewStudent_Enable = False
|
||||
AddNewStudent_Favorite = True
|
||||
AddNewStudent_MinLevel = 50
|
||||
|
||||
# Group `Research`
|
||||
Research_UseCube = 'only_05_hour' # always_use, only_05_hour, only_no_project, do_not_use
|
||||
|
||||
@@ -470,6 +470,7 @@
|
||||
"LDPlayer3": "LD Player 3",
|
||||
"LDPlayer4": "LD Player 4",
|
||||
"LDPlayer9": "LD Player 9",
|
||||
"LDPlayer14": "LDPlayer 14",
|
||||
"MuMuPlayer": "MuMu Player",
|
||||
"MuMuPlayerX": "MuMu Player X",
|
||||
"MuMuPlayer12": "MuMu Player 12",
|
||||
|
||||
@@ -470,6 +470,7 @@
|
||||
"LDPlayer3": "LDPlayer3",
|
||||
"LDPlayer4": "LDPlayer4",
|
||||
"LDPlayer9": "LDPlayer9",
|
||||
"LDPlayer14": "LDPlayer14",
|
||||
"MuMuPlayer": "MuMuPlayer",
|
||||
"MuMuPlayerX": "MuMuPlayerX",
|
||||
"MuMuPlayer12": "MuMuPlayer12",
|
||||
|
||||
@@ -470,6 +470,7 @@
|
||||
"LDPlayer3": "雷电模拟器3",
|
||||
"LDPlayer4": "雷电模拟器4",
|
||||
"LDPlayer9": "雷电模拟器9",
|
||||
"LDPlayer14": "雷电模拟器14",
|
||||
"MuMuPlayer": "MuMu模拟器",
|
||||
"MuMuPlayerX": "MuMu模拟器X",
|
||||
"MuMuPlayer12": "MuMu模拟器12",
|
||||
|
||||
@@ -470,6 +470,7 @@
|
||||
"LDPlayer3": "雷電模擬器3",
|
||||
"LDPlayer4": "雷電模擬器4",
|
||||
"LDPlayer9": "雷電模擬器9",
|
||||
"LDPlayer14": "雷電模擬器14",
|
||||
"MuMuPlayer": "MuMu模擬器",
|
||||
"MuMuPlayerX": "MuMu模擬器X",
|
||||
"MuMuPlayer12": "MuMu模擬器12",
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user