|
@ -192,9 +192,10 @@ namespace IPA.Logging |
|
|
|
|
|
|
|
|
EnsureHarmonyLogging(); |
|
|
EnsureHarmonyLogging(); |
|
|
|
|
|
|
|
|
|
|
|
HarmonyGlobalSettings.DisallowLegacyGlobalUnpatchAll = true; |
|
|
harmony ??= new Harmony("BSIPA Console Redirector Patcher"); |
|
|
harmony ??= new Harmony("BSIPA Console Redirector Patcher"); |
|
|
stdoutInterceptor ??= new StdoutInterceptor(); |
|
|
stdoutInterceptor ??= new StdoutInterceptor(); |
|
|
stderrInterceptor ??= new StdoutInterceptor() { isStdErr = true }; |
|
|
|
|
|
|
|
|
stderrInterceptor ??= new StdoutInterceptor { isStdErr = true }; |
|
|
|
|
|
|
|
|
RedirectConsole(); |
|
|
RedirectConsole(); |
|
|
ConsoleHarmonyPatches.Patch(harmony); |
|
|
ConsoleHarmonyPatches.Patch(harmony); |
|
|