Remove one unnecessary batch file creation step

This commit is contained in:
Matt Nadareski
2018-06-10 15:11:25 -07:00
parent a2ac7222f9
commit 1d5d7b265e

View File

@@ -89,13 +89,14 @@ namespace DICUI
{
case KnownSystem.MicrosoftXBOXOne:
case KnownSystem.SonyPlayStation4:
// TODO: Direct invocation of program instead of via Batch File
using (StreamWriter writetext = new StreamWriter("XboneOrPS4" + guid + ".bat"))
{
writetext.WriteLine("sg_raw.exe -v -r 4100 -R " + driveLetter + ": " + "ad 01 00 00 00 00 00 00 10 04 00 00 -o \"PIC.bin\"");
}
Process processXboneOrPS4 = new Process();
processXboneOrPS4.StartInfo.FileName = "XboneOrPS4" + guid + ".bat";
Process processXboneOrPS4 = new Process()
{
StartInfo = new ProcessStartInfo()
{
FileName = "sg_raw.exe", // TODO: Make this configurable
Arguments = "-v -r 4100 -R " + driveLetter + ": " + "ad 01 00 00 00 00 00 00 10 04 00 00 -o \"PIC.bin\""
},
};
processXboneOrPS4.Start();
processXboneOrPS4.WaitForExit();
break;