mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
@@ -1155,17 +1155,25 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
/// <returns>是否关闭成功</returns>
|
||||
public bool KillEmulatorModeSwitcher()
|
||||
{
|
||||
string emulatorMode = Instances.SettingsViewModel.ConnectConfig;
|
||||
Instances.AsstProxy.Connected = false;
|
||||
return emulatorMode switch
|
||||
try
|
||||
{
|
||||
"Nox" => KillEmulatorNox(),
|
||||
"LDPlayer" => KillEmulatorLDPlayer(),
|
||||
"XYAZ" => KillEmulatorXYAZ(),
|
||||
"BlueStacks" => KillEmulatorBlueStacks(),
|
||||
"MuMuEmulator12" => KillEmulatorMuMuEmulator12(),
|
||||
_ => KillEmulatorbyWindow(),
|
||||
};
|
||||
string emulatorMode = Instances.SettingsViewModel.ConnectConfig;
|
||||
Instances.AsstProxy.Connected = false;
|
||||
return emulatorMode switch
|
||||
{
|
||||
"Nox" => KillEmulatorNox(),
|
||||
"LDPlayer" => KillEmulatorLDPlayer(),
|
||||
"XYAZ" => KillEmulatorXYAZ(),
|
||||
"BlueStacks" => KillEmulatorBlueStacks(),
|
||||
"MuMuEmulator12" => KillEmulatorMuMuEmulator12(),
|
||||
_ => KillEmulatorbyWindow(),
|
||||
};
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_logger.Error("Failed to close emulator: " + e.Message);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user