mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Fix .NET launcher console not working
This commit is contained in:
1 file changed
+11
-2
@@ -31,8 +31,17 @@ namespace BepInEx
|
||||
public void Initialize(bool alreadyActive)
|
||||
{
|
||||
ConsoleActive = alreadyActive;
|
||||
|
||||
StandardOut = Console.Out;
|
||||
|
||||
if (alreadyActive)
|
||||
{
|
||||
// We're in a .NET framework / XNA environment; console *is* stdout
|
||||
ConsoleOut = Console.Out;
|
||||
StandardOut = new StreamWriter(Console.OpenStandardOutput());
|
||||
}
|
||||
else
|
||||
{
|
||||
StandardOut = Console.Out;
|
||||
}
|
||||
}
|
||||
|
||||
public void CreateConsole(uint codepage)
|
||||
|
||||
Reference in new issue
Block a user