From d21a5c84955e05a81a75dafb317bedd34b3f1ff0 Mon Sep 17 00:00:00 2001 From: Nathan Rennie-Waldock Date: Mon, 14 May 2018 11:54:10 +0100 Subject: [PATCH 1/3] Fix PC CD (no copy protection) arguments --- MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 31781db0..1dd0fbc2 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -163,7 +163,7 @@ namespace DICUI VAR_Switches = ""; break; case "IBM PC Compatible(CD - Rom) No Copy Protection": - VAR_Type = "dvd"; + VAR_Type = "cd"; VAR_Switches = "/c2"; break; case "BD-Video": From da4d9fbf6745ef6b5c2cd1f70f83ec024127c2aa Mon Sep 17 00:00:00 2001 From: Nathan Rennie-Waldock Date: Mon, 14 May 2018 11:54:57 +0100 Subject: [PATCH 2/3] Quote output path as it may contain spaces --- MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 1dd0fbc2..5f023ccd 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -207,7 +207,7 @@ namespace DICUI { Process process = new Process(); process.StartInfo.FileName = "Release_ANSI\\DiscImageCreator.exe"; - process.StartInfo.Arguments = VAR_Type + " " + VAR_DriveLetter + " " + VAR_OutputDirectory + "\\" + VAR_OutputFilename + " " + VAR_DriveSpeed + " " + VAR_Switches; + process.StartInfo.Arguments = VAR_Type + " " + VAR_DriveLetter + " \"" + VAR_OutputDirectory + "\\" + VAR_OutputFilename + "\" " + VAR_DriveSpeed + " " + VAR_Switches; Console.WriteLine(process.StartInfo.Arguments); process.Start(); process.WaitForExit(); From eb664cebba57d210447a97165abf9a1e0f0cbd16 Mon Sep 17 00:00:00 2001 From: Nathan Rennie-Waldock Date: Mon, 14 May 2018 12:08:37 +0100 Subject: [PATCH 3/3] Make sure output directory has a trailing backslash for PSX commands --- MainWindow.xaml.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 5f023ccd..9509b429 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -228,14 +228,14 @@ namespace DICUI { using (StreamWriter writetext = new StreamWriter("PSX.bat")) { - writetext.WriteLine("edccchk" + " " + "\"" + VAR_OutputDirectory + VAR_OutputFilename + ".bin" + "\" > " + "\"" + VAR_OutputDirectory + "edccchk1.txt"); - writetext.WriteLine("edccchk" + " " + "\"" + VAR_OutputDirectory + VAR_OutputFilename + " (Track 1).bin" + "\" > " + "\"" + VAR_OutputDirectory + "edccchk1.txt"); - writetext.WriteLine("edccchk" + " " + "\"" + VAR_OutputDirectory + VAR_OutputFilename + " (Track 01).bin" + "\" > " + "\"" + VAR_OutputDirectory + "edccchk1.txt"); - writetext.WriteLine("psxt001z" + " " + "\"" + VAR_OutputDirectory + VAR_OutputFilename + ".bin" + "\" > " + "\"" + VAR_OutputDirectory + "psxt001z1.txt"); - writetext.WriteLine("psxt001z" + " " + "\"" + VAR_OutputDirectory + VAR_OutputFilename + " (Track 1).bin" + "\" > " + "\"" + VAR_OutputDirectory + "psxt001z2.txt"); - writetext.WriteLine("psxt001z" + " " + "\"" + VAR_OutputDirectory + VAR_OutputFilename + " (Track 01).bin" + "\" > " + "\"" + VAR_OutputDirectory + "psxt001z3.txt"); - writetext.WriteLine("psxt001z" + " " + "--libcrypt " + "\"" + VAR_OutputDirectory + VAR_OutputFilename + ".sub\" > " + "\"" + VAR_OutputDirectory + "libcrypt.txt"); - writetext.WriteLine("psxt001z" + " " + "--libcryptdrvfast " + VAR_DriveLetter + " > " + "\"" + VAR_OutputDirectory + "libcryptdrv.log"); + writetext.WriteLine("edccchk" + " " + "\"" + VAR_OutputDirectory + "\\" + VAR_OutputFilename + ".bin" + "\" > " + "\"" + VAR_OutputDirectory + "\\" + "edccchk1.txt"); + writetext.WriteLine("edccchk" + " " + "\"" + VAR_OutputDirectory + "\\" + VAR_OutputFilename + " (Track 1).bin" + "\" > " + "\"" + VAR_OutputDirectory + "\\" + "edccchk1.txt"); + writetext.WriteLine("edccchk" + " " + "\"" + VAR_OutputDirectory + "\\" + VAR_OutputFilename + " (Track 01).bin" + "\" > " + "\"" + VAR_OutputDirectory + "\\" + "edccchk1.txt"); + writetext.WriteLine("psxt001z" + " " + "\"" + VAR_OutputDirectory + "\\" + VAR_OutputFilename + ".bin" + "\" > " + "\"" + VAR_OutputDirectory + "\\" + "psxt001z1.txt"); + writetext.WriteLine("psxt001z" + " " + "\"" + VAR_OutputDirectory + "\\" + VAR_OutputFilename + " (Track 1).bin" + "\" > " + "\"" + VAR_OutputDirectory + "\\" + "psxt001z2.txt"); + writetext.WriteLine("psxt001z" + " " + "\"" + VAR_OutputDirectory + "\\" + VAR_OutputFilename + " (Track 01).bin" + "\" > " + "\"" + VAR_OutputDirectory + "\\" + "psxt001z3.txt"); + writetext.WriteLine("psxt001z" + " " + "--libcrypt " + "\"" + VAR_OutputDirectory + "\\" + VAR_OutputFilename + ".sub\" > " + "\"" + VAR_OutputDirectory + "\\" + "libcrypt.txt"); + writetext.WriteLine("psxt001z" + " " + "--libcryptdrvfast " + VAR_DriveLetter + " > " + "\"" + VAR_OutputDirectory + "\\" + "libcryptdrv.log"); } Process processpsx = new Process(); processpsx.StartInfo.FileName = "PSX.bat";