Преглед на файлове

Temporary fix console logging not working on Unity 2018+ games
Rebase of f22e583

Bepis преди 4 години
родител
ревизия
2d32ccab9f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      BepInEx.Core/Logging/ConsoleLogListener.cs

+ 1 - 1
BepInEx.Core/Logging/ConsoleLogListener.cs

@@ -14,7 +14,7 @@ namespace BepInEx.Logging
 				return;
 
 			ConsoleManager.SetConsoleColor(eventArgs.Level.GetConsoleColor());
-			Console.Write(eventArgs.ToStringLine());
+			ConsoleManager.ConsoleStream?.Write(eventArgs.ToStringLine());
 			ConsoleManager.SetConsoleColor(ConsoleColor.Gray);
 		}