mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-19 15:51:45 +00:00
Support macos
This commit is contained in:
1 file changed
+4
-1
@@ -64,7 +64,10 @@ internal class ConsoleWindow
|
||||
var currWnd = getForeground();
|
||||
|
||||
if (!AllocConsole())
|
||||
throw new Win32Exception("AllocConsole() failed");
|
||||
{
|
||||
var error = Marshal.GetLastWin32Error();
|
||||
if (error != 5) throw new Win32Exception("AllocConsole() failed");
|
||||
}
|
||||
|
||||
// Restore Foreground
|
||||
setForeground(currWnd);
|
||||
|
||||
Reference in new issue
Block a user