better diagnostics for win32 console startup
This commit is contained in:
parent
aff85d5885
commit
a71fe428c2
|
@ -155,7 +155,7 @@ namespace BizHawk.MultiClient
|
||||||
if (Win32.AllocConsole())
|
if (Win32.AllocConsole())
|
||||||
hasConsole = true;
|
hasConsole = true;
|
||||||
else
|
else
|
||||||
System.Windows.Forms.MessageBox.Show("Couldn't allocate win32 console: {0}" + Marshal.GetLastWin32Error());
|
System.Windows.Forms.MessageBox.Show(string.Format("Couldn't allocate win32 console: {0}", Marshal.GetLastWin32Error()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(hasConsole)
|
if(hasConsole)
|
||||||
|
@ -174,6 +174,7 @@ namespace BizHawk.MultiClient
|
||||||
}
|
}
|
||||||
|
|
||||||
DotNetRewireConout();
|
DotNetRewireConout();
|
||||||
|
hasConsole = true;
|
||||||
|
|
||||||
if (attachedConsole)
|
if (attachedConsole)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue