mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-19 15:51:45 +00:00
Fix game crash when disabling console in config
This commit is contained in:
1 file changed
+2
-1
@@ -56,7 +56,8 @@ namespace BepInEx.Bootstrap
|
||||
}
|
||||
|
||||
//Fix for standard output getting overwritten by UnityLogger
|
||||
Console.SetOut(ConsoleWindow.StandardOut);
|
||||
if (ConsoleWindow.StandardOut != null)
|
||||
Console.SetOut(ConsoleWindow.StandardOut);
|
||||
|
||||
|
||||
Logger.Listeners.Add(new UnityLogListener());
|
||||
|
||||
Reference in new issue
Block a user