We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37e0a69 commit 97a9880Copy full SHA for 97a9880
Hi3Helper.Plugin.HBR/Exports.GameLaunch.cs
@@ -111,17 +111,17 @@ public override bool KillRunningGameCore(GameManagerExtension.RunGameFromGameMan
111
}
112
113
114
- if (returnProcess == null)
+ try
115
{
116
- return null;
+ return returnProcess;
117
118
-
119
- foreach (var process in processes.Where(x => x != returnProcess))
+ finally
120
121
- process.Dispose();
+ foreach (var process in processes.Where(x => x != returnProcess))
+ {
122
+ process.Dispose();
123
+ }
124
- return returnProcess;
125
126
127
private static bool TryGetGameExecutablePath(GameManagerExtension.RunGameFromGameManagerContext context, [NotNullWhen(true)] out string? gameExecutablePath)
0 commit comments