From a2ac7222f91048be2e1613d71da8ec2cf0766279 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 10 Jun 2018 15:07:28 -0700 Subject: [PATCH 01/17] Remove extra ECC check from PS1 --- MainWindow.xaml.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index beebe4ee..8842e450 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -103,9 +103,6 @@ namespace DICUI // TODO: Direct invocation of program instead of via Batch File using (StreamWriter writetext = new StreamWriter("PSX" + guid + ".bat")) { - writetext.WriteLine("edccchk" + " " + "\"" + outputDirectory + "\\" + outputFileName + ".bin" + "\" > " + "\"" + outputDirectory + "\\" + "edccchk1.txt"); - writetext.WriteLine("edccchk" + " " + "\"" + outputDirectory + "\\" + outputFileName + " (Track 1).bin" + "\" > " + "\"" + outputDirectory + "\\" + "edccchk1.txt"); - writetext.WriteLine("edccchk" + " " + "\"" + outputDirectory + "\\" + outputFileName + " (Track 01).bin" + "\" > " + "\"" + outputDirectory + "\\" + "edccchk1.txt"); writetext.WriteLine("psxt001z" + " " + "\"" + outputDirectory + "\\" + outputFileName + ".bin" + "\" > " + "\"" + outputDirectory + "\\" + "psxt001z1.txt"); writetext.WriteLine("psxt001z" + " " + "\"" + outputDirectory + "\\" + outputFileName + " (Track 1).bin" + "\" > " + "\"" + outputDirectory + "\\" + "psxt001z2.txt"); writetext.WriteLine("psxt001z" + " " + "\"" + outputDirectory + "\\" + outputFileName + " (Track 01).bin" + "\" > " + "\"" + outputDirectory + "\\" + "psxt001z3.txt"); From 1d5d7b265e9a7488f6d99e2bd5b392f4dba67b8b Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 10 Jun 2018 15:11:25 -0700 Subject: [PATCH 02/17] Remove one unnecessary batch file creation step --- MainWindow.xaml.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 8842e450..905658fe 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -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; From 319f5563cb4371ed82db57bcebc4076672443abe Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 10 Jun 2018 15:13:16 -0700 Subject: [PATCH 03/17] More descriptive process names --- MainWindow.xaml.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index f43eee0f..3bd41acd 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -89,7 +89,7 @@ namespace DICUI { case KnownSystem.MicrosoftXBOXOne: case KnownSystem.SonyPlayStation4: - Process processXboneOrPS4 = new Process() + Process sgraw = new Process() { StartInfo = new ProcessStartInfo() { @@ -97,8 +97,8 @@ namespace DICUI 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(); + sgraw.Start(); + sgraw.WaitForExit(); break; case KnownSystem.SonyPlayStation: // TODO: Direct invocation of program instead of via Batch File @@ -110,10 +110,10 @@ namespace DICUI writetext.WriteLine("psxt001z" + " " + "--libcrypt " + "\"" + outputDirectory + "\\" + outputFileName + ".sub\" > " + "\"" + outputDirectory + "\\" + "libcrypt.txt"); writetext.WriteLine("psxt001z" + " " + "--libcryptdrvfast " + driveLetter + " > " + "\"" + outputDirectory + "\\" + "libcryptdrv.log"); } - Process processpsx = new Process(); - processpsx.StartInfo.FileName = "PSX" + guid + ".bat"; - processpsx.Start(); - processpsx.WaitForExit(); + Process psxt = new Process(); + psxt.StartInfo.FileName = "PSX" + guid + ".bat"; + psxt.Start(); + psxt.WaitForExit(); break; } From a7a295434d88077156c472a8450052cab94ca4cf Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 10 Jun 2018 16:04:58 -0700 Subject: [PATCH 04/17] Simplification of rows, some renames --- MainWindow.xaml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/MainWindow.xaml b/MainWindow.xaml index 66e5da4d..7253fef4 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -42,24 +42,17 @@ - + - - - + +