Skip to content

Commit 200a60c

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents c53bad2 + 549d47d commit 200a60c

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

OverrideLauncher.Core/Modules/Classes/Launch/Client/ClientRunner.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Diagnostics;
33
using OverrideLauncher.Core.Modules.Entry.LaunchEntry;
44

@@ -8,6 +8,7 @@ public class ClientRunner
88
{
99
public Process GameProcess { get; set; }
1010
public Action<string> LogsOutput { get; set; }
11+
public Action GameExit { get; set; }
1112
public ClientRunner(ClientRunnerInfo RunnerInfo)
1213
{
1314
var g = new GenerateClientParameters(RunnerInfo);
@@ -42,7 +43,11 @@ public void Start()
4243
GameProcess.Start();
4344
GameProcess.BeginOutputReadLine();
4445
GameProcess.BeginErrorReadLine();
45-
46-
GameProcess.WaitForExit();
46+
47+
Task.Run(() =>
48+
{
49+
GameProcess.WaitForExit();
50+
GameExit.Invoke();
51+
});
4752
}
48-
}
53+
}

0 commit comments

Comments
 (0)