fix: 控制台退出模拟器统一添加等待时间 #4808

待测试
This commit is contained in:
uye
2023-05-19 21:28:53 +08:00
parent 4f9f37990b
commit 4febde23c6

View File

@@ -1105,7 +1105,8 @@ namespace MaaWpfGui.ViewModels.UI
CreateNoWindow = true,
UseShellExecute = false,
};
Process.Start(startInfo);
var process = Process.Start(startInfo);
process.WaitForExit(5000);
return KillEmulator();
}
@@ -1155,7 +1156,8 @@ namespace MaaWpfGui.ViewModels.UI
CreateNoWindow = true,
UseShellExecute = false,
};
Process.Start(startInfo);
var process = Process.Start(startInfo);
process.WaitForExit(5000);
return KillEmulator();
}
@@ -1203,7 +1205,8 @@ namespace MaaWpfGui.ViewModels.UI
CreateNoWindow = true,
UseShellExecute = false,
};
Process.Start(startInfo);
var process = Process.Start(startInfo);
process.WaitForExit(5000);
return KillEmulator();
}
@@ -1244,7 +1247,8 @@ namespace MaaWpfGui.ViewModels.UI
CreateNoWindow = true,
UseShellExecute = false,
};
Process.Start(startInfo);
var process = Process.Start(startInfo);
process.WaitForExit(5000);
return KillEmulator();
}