fix debug stdout redirection with a hack. which visual studio doesnt support in c# ????
This commit is contained in:
parent
51dbef0fd2
commit
a849a2b9ca
|
@ -112,6 +112,15 @@ namespace BizHawk.MultiClient
|
||||||
string cmdMovie = null;
|
string cmdMovie = null;
|
||||||
for (int i = 0; i < args.Length; i++)
|
for (int i = 0; i < args.Length; i++)
|
||||||
{
|
{
|
||||||
|
//for some reason sometimes visual studio will pass this to us on the commandline. it makes no sense.
|
||||||
|
if (args[i] == ">")
|
||||||
|
{
|
||||||
|
i++;
|
||||||
|
string stdout = args[i];
|
||||||
|
Console.SetOut(new StreamWriter(stdout));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
string arg = args[i].ToLower();
|
string arg = args[i].ToLower();
|
||||||
if (arg.StartsWith("--load-slot="))
|
if (arg.StartsWith("--load-slot="))
|
||||||
cmdLoadState = arg.Substring(arg.IndexOf('=') + 1);
|
cmdLoadState = arg.Substring(arg.IndexOf('=') + 1);
|
||||||
|
|
Loading…
Reference in New Issue