1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2026-06-24 05:14:52 +00:00

test: exit emulator

This commit is contained in:
RedDeadDepresso
2024-01-05 18:07:29 +00:00
parent 836ea595ca
commit 67310938d2
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}')