1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2026-06-09 20:04:52 +00:00

test: exit emulator

This commit is contained in:
RedDeadDepresso
2024-01-05 18:07:29 +00:00
committed by YoursFunny
parent f932b2ac10
commit 64d63bdd24
7 changed files with 64 additions and 22 deletions
@@ -153,6 +153,8 @@ class PlatformWindows(PlatformBase, EmulatorManager):
elif instance == Emulator.NoxPlayerFamily:
# Nox.exe -clone:Nox_1 -quit
self.execute(f'"{exe}" -clone:{instance.name} -quit')
elif instance == Emulator.BlueStacks5:
self.execute(f'taskkill /fi "WINDOWTITLE eq {instance.name}" /IM "HD-Player.exe" /F')
else:
raise EmulatorUnknown(f'Cannot stop an unknown emulator instance: {instance}')