Log Window - properly set logging back to the standard console output when closing

This commit is contained in:
adelikat 2019-12-30 17:14:58 -06:00
parent 67419c980a
commit ca862d5581
1 changed files with 4 additions and 1 deletions

View File

@ -56,7 +56,10 @@ namespace BizHawk.Client.EmuHawk
private void Detach()
{
Console.SetOut(TextWriter.Null);
Console.SetOut(new StreamWriter(Console.OpenStandardOutput())
{
AutoFlush = true
});
_logStream.Close();
_logStream = null;
Log.HACK_LOG_STREAM = null;