mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
Merge branch 'dev' of https://github.com/MaaAssistantArknights/MaaAssistantArknights into dev
This commit is contained in:
@@ -218,16 +218,12 @@ namespace MeoAsstGui
|
||||
public void TryToStartEmulator()
|
||||
{
|
||||
if (!StartEmulator
|
||||
|| EmulatorPath.Length == 0)
|
||||
|| EmulatorPath.Length == 0
|
||||
|| !File.Exists(EmulatorPath))
|
||||
{
|
||||
return;
|
||||
}
|
||||
Process emuProcess = new Process();
|
||||
emuProcess.StartInfo.FileName = "cmd.exe";
|
||||
emuProcess.StartInfo.RedirectStandardInput = true;
|
||||
emuProcess.StartInfo.UseShellExecute = false;
|
||||
emuProcess.Start();
|
||||
emuProcess.StandardInput.WriteLine(EmulatorPath);
|
||||
System.Diagnostics.Process.Start(EmulatorPath);
|
||||
int delay = 0;
|
||||
if (!int.TryParse(EmulatorWaitSeconds, out delay))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user