avoid use console window if debug console is enabled in BepInEx

This commit is contained in:
soarqin committed 2024-11-12 15:01:53 +08:00
1 parent 6048db8069
commit 5b725ff94f
2 files changed
+8 -1

No files matched your search

+3
View File
@@ -136,6 +136,9 @@ public static class WinApi
[DllImport("kernel32", ExactSpelling = true)]
public static extern int GetCurrentProcessId();
[DllImport("kernel32", ExactSpelling = true)]
public static extern IntPtr GetConsoleWindow();
[DllImport("kernel32", ExactSpelling = true, SetLastError = true)]
public static extern bool SetProcessAffinityMask(IntPtr hProcess, ulong dwProcessAffinityMask);