mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: [ALAS] use ldconsole.exe
This commit is contained in:
parent
1375eba095
commit
70db762421
@ -169,7 +169,9 @@ class Emulator(EmulatorBase):
|
|||||||
if 'MuMuPlayer.exe' in exe:
|
if 'MuMuPlayer.exe' in exe:
|
||||||
return exe.replace('MuMuPlayer.exe', 'MuMuManager.exe')
|
return exe.replace('MuMuPlayer.exe', 'MuMuManager.exe')
|
||||||
elif 'LDPlayer.exe' in exe:
|
elif 'LDPlayer.exe' in exe:
|
||||||
return exe.replace('LDPlayer.exe', 'dnconsole.exe')
|
return exe.replace('LDPlayer.exe', 'ldconsole.exe')
|
||||||
|
elif 'dnplayer.exe' in exe:
|
||||||
|
return exe.replace('dnplayer.exe', 'ldconsole.exe')
|
||||||
elif 'Bluestacks.exe' in exe:
|
elif 'Bluestacks.exe' in exe:
|
||||||
return exe.replace('Bluestacks.exe', 'bsconsole.exe')
|
return exe.replace('Bluestacks.exe', 'bsconsole.exe')
|
||||||
elif 'MEmu.exe' in exe:
|
elif 'MEmu.exe' in exe:
|
||||||
|
|||||||
@ -95,8 +95,8 @@ class PlatformWindows(PlatformBase, EmulatorManager):
|
|||||||
logger.warning(f'Cannot get MuMu instance index from name {instance.name}')
|
logger.warning(f'Cannot get MuMu instance index from name {instance.name}')
|
||||||
self.execute(f'"{exe}" -v {instance.MuMuPlayer12_id}')
|
self.execute(f'"{exe}" -v {instance.MuMuPlayer12_id}')
|
||||||
elif instance == Emulator.LDPlayerFamily:
|
elif instance == Emulator.LDPlayerFamily:
|
||||||
# LDPlayer.exe index=0
|
# ldconsole.exe launch --index 0
|
||||||
self.execute(f'"{exe}" index={instance.LDPlayer_id}')
|
self.execute(f'"{Emulator.single_to_console(exe)}" launch --index {instance.LDPlayer_id}')
|
||||||
elif instance == Emulator.NoxPlayerFamily:
|
elif instance == Emulator.NoxPlayerFamily:
|
||||||
# Nox.exe -clone:Nox_1
|
# Nox.exe -clone:Nox_1
|
||||||
self.execute(f'"{exe}" -clone:{instance.name}')
|
self.execute(f'"{exe}" -clone:{instance.name}')
|
||||||
@ -146,12 +146,12 @@ class PlatformWindows(PlatformBase, EmulatorManager):
|
|||||||
rf')'
|
rf')'
|
||||||
)
|
)
|
||||||
elif instance == Emulator.MuMuPlayer12:
|
elif instance == Emulator.MuMuPlayer12:
|
||||||
# E:\Program Files\Netease\MuMu Player 12\shell\MuMuManager.exe api -v 1 shutdown_player
|
# MuMuManager.exe api -v 1 shutdown_player
|
||||||
if instance.MuMuPlayer12_id is None:
|
if instance.MuMuPlayer12_id is None:
|
||||||
logger.warning(f'Cannot get MuMu instance index from name {instance.name}')
|
logger.warning(f'Cannot get MuMu instance index from name {instance.name}')
|
||||||
self.execute(f'"{Emulator.single_to_console(exe)}" api -v {instance.MuMuPlayer12_id} shutdown_player')
|
self.execute(f'"{Emulator.single_to_console(exe)}" api -v {instance.MuMuPlayer12_id} shutdown_player')
|
||||||
elif instance == Emulator.LDPlayerFamily:
|
elif instance == Emulator.LDPlayerFamily:
|
||||||
# E:\Program Files\leidian\LDPlayer9\dnconsole.exe quit --index 0
|
# ldconsole.exe quit --index 0
|
||||||
self.execute(f'"{Emulator.single_to_console(exe)}" quit --index {instance.LDPlayer_id}')
|
self.execute(f'"{Emulator.single_to_console(exe)}" quit --index {instance.LDPlayer_id}')
|
||||||
elif instance == Emulator.NoxPlayerFamily:
|
elif instance == Emulator.NoxPlayerFamily:
|
||||||
# Nox.exe -clone:Nox_1 -quit
|
# Nox.exe -clone:Nox_1 -quit
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user