mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
Update ProcessInterop.cs
This commit is contained in:
@@ -77,7 +77,7 @@ internal static class ProcessInterop
|
||||
string pbasePath = Path.Combine(gameFolder, "mhypbase.dll");
|
||||
SafeHandle handle = File.OpenHandle(pbasePath, share: FileShare.None);
|
||||
while (true) {
|
||||
if (game.Any(process => process.MainWindowHandle != nint.Zero)) {
|
||||
if (game.MainWindowHandle != nint.Zero) {
|
||||
handle.Close();
|
||||
break;
|
||||
}
|
||||
@@ -88,4 +88,4 @@ internal static class ProcessInterop
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user