We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c53bad2 + 549d47d commit 200a60cCopy full SHA for 200a60c
1 file changed
OverrideLauncher.Core/Modules/Classes/Launch/Client/ClientRunner.cs
@@ -1,4 +1,4 @@
1
-using System;
+using System;
2
using System.Diagnostics;
3
using OverrideLauncher.Core.Modules.Entry.LaunchEntry;
4
@@ -8,6 +8,7 @@ public class ClientRunner
8
{
9
public Process GameProcess { get; set; }
10
public Action<string> LogsOutput { get; set; }
11
+ public Action GameExit { get; set; }
12
public ClientRunner(ClientRunnerInfo RunnerInfo)
13
14
var g = new GenerateClientParameters(RunnerInfo);
@@ -42,7 +43,11 @@ public void Start()
42
43
GameProcess.Start();
44
GameProcess.BeginOutputReadLine();
45
GameProcess.BeginErrorReadLine();
-
46
- GameProcess.WaitForExit();
+
47
+ Task.Run(() =>
48
+ {
49
+ GameProcess.WaitForExit();
50
+ GameExit.Invoke();
51
+ });
52
}
-}
53
+}
0 commit comments