Explorar el Código

Temporary fix console logging not working on Unity 2018+ games

ghorsington hace 4 años
padre
commit
f22e5836ca
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      BepInEx/Logging/ConsoleLogListener.cs

+ 1 - 2
BepInEx/Logging/ConsoleLogListener.cs

@@ -12,9 +12,8 @@ namespace BepInEx.Logging
 		{
 			if ((eventArgs.Level & ConfigConsoleDisplayedLevel.Value) == 0)
 				return;
-
 			ConsoleManager.SetConsoleColor(eventArgs.Level.GetConsoleColor());
-			Console.Write(eventArgs.ToStringLine());
+			ConsoleManager.ConsoleStream?.Write(eventArgs.ToStringLine());
 			ConsoleManager.SetConsoleColor(ConsoleColor.Gray);
 		}