From 3420bf6e7441ca871a4c7360e822dfb8a9854f5b Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Thu, 13 Aug 2026 16:56:00 +0800 Subject: [PATCH] Add: [ALAS] launch LDPlayer as minimized window --- module/device/platform/platform_windows.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/device/platform/platform_windows.py b/module/device/platform/platform_windows.py index 2a520e8a6..1ae2d3f29 100644 --- a/module/device/platform/platform_windows.py +++ b/module/device/platform/platform_windows.py @@ -100,6 +100,10 @@ class PlatformWindows(PlatformBase, EmulatorManager): if instance.MuMuPlayer12_id is None: 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} launch_player') + elif instance == Emulator.LDPlayer14 or instance == Emulator.LDPlayer9: + # ldconsole.exe launch --index 0 --mini + # LDPlayer above 9 has `--mini` to start as minimized window, `--hide` to start with no frontend window + self.execute(f'"{Emulator.single_to_console(exe)}" launch --index {instance.LDPlayer_id} --mini') elif instance == Emulator.LDPlayerFamily: # ldconsole.exe launch --index 0 self.execute(f'"{Emulator.single_to_console(exe)}" launch --index {instance.LDPlayer_id}')