Compare commits

..

5 Commits
1.02 ... 1.03

Author SHA1 Message Date
reignstumble
106f16d703 Features Update 2018-06-08 17:11:13 -04:00
reignstumble
b251ae7927 Update README.md 2018-05-22 12:29:32 -04:00
ReignStumble
3a749b67e3 Merge branch 'master' of https://github.com/reignstumble/DICUI 2018-05-18 23:13:49 -04:00
ReignStumble
3abc277aab Changed /c2 to /c2 20 2018-05-18 23:13:47 -04:00
reignstumble
894f2c6fde Update README.md 2018-05-18 22:39:05 -04:00
3 changed files with 109 additions and 43 deletions

View File

@@ -30,18 +30,17 @@
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Label Grid.Row="0" Grid.Column="0" VerticalAlignment="Center">Disc Type</Label>
<Label Grid.Row="1" Grid.Column="0" VerticalAlignment="Center">DiscImageCreator Path</Label>
<Label Grid.Row="2" Grid.Column="0" VerticalAlignment="Center">Output Filename</Label>
<Label Grid.Row="3" Grid.Column="0" VerticalAlignment="Center">Output Directory</Label>
<Label Grid.Row="4" Grid.Column="0" VerticalAlignment="Center">Drive Letter</Label>
<Label Grid.Row="5" Grid.Column="0" VerticalAlignment="Center">Drive Speed</Label>
<Label Grid.Row="1" Grid.Column="0" VerticalAlignment="Center">Output Filename</Label>
<Label Grid.Row="2" Grid.Column="0" VerticalAlignment="Center">Output Directory</Label>
<Label Grid.Row="3" Grid.Column="0" VerticalAlignment="Center">Drive Letter</Label>
<Label Grid.Row="4" Grid.Column="0" VerticalAlignment="Center">Drive Speed</Label>
<ComboBox x:Name="cmb_DiscType" Grid.Row="0" Grid.Column="1" Height="22" Text="Bandai Playdia Quick Interactive System" DropDownClosed="cmb_DiscType_DropDownClosed" SelectionChanged="cmb_DiscType_SelectionChanged">
<ComboBoxItem Content="Unknown"/>
@@ -84,17 +83,15 @@
<ComboBoxItem Content="Video CD"/>
</ComboBox>
<TextBox x:Name="TXT_DiscImageCreatorPath" Grid.Row="1" Grid.Column="1" Height="22" Width="345" HorizontalAlignment="left" IsEnabled="False" ></TextBox>
<Button x:Name="BTN_DiscImageCreatorBrowse" Grid.Row="1" Grid.Column="1" Height="22" Width="50" HorizontalAlignment="Right" Content="Browse" IsEnabled="False"></Button>
<TextBox x:Name="txt_OutputFilename" Grid.Row="1" Grid.Column="1" Height="22"></TextBox>
<TextBox x:Name="txt_OutputFilename" Grid.Row="2" Grid.Column="1" Height="22"></TextBox>
<TextBox x:Name="txt_OutputDirectory" Grid.Row="2" Grid.Column="1" Height="22" Width="345" HorizontalAlignment="left" Text="ISO" ></TextBox>
<Button x:Name="BTN_OutputDirectoryBrowse" Grid.Row="2" Grid.Column="1" Height="22" Width="50" HorizontalAlignment="Right" Content="Browse" Click="BTN_OutputDirectoryBrowse_Click" ></Button>
<TextBox x:Name="txt_OutputDirectory" Grid.Row="3" Grid.Column="1" Height="22" Width="345" HorizontalAlignment="left" Text="ISO" ></TextBox>
<Button x:Name="BTN_OutputDirectoryBrowse" Grid.Row="3" Grid.Column="1" Height="22" Width="50" HorizontalAlignment="Right" Content="Browse" Click="BTN_OutputDirectoryBrowse_Click" ></Button>
<ComboBox x:Name="cmb_DriveLetter" Grid.Row="3" Grid.Column="1" Height="22" Width="397" HorizontalAlignment="left" SelectionChanged="cmb_DriveLetter_SelectionChanged"></ComboBox>
<ComboBox x:Name="cmb_DriveLetter" Grid.Row="4" Grid.Column="1" Height="22" Width="60" HorizontalAlignment="left"></ComboBox>
<ComboBox x:Name="cmb_DriveSpeed" Grid.Row="5" Grid.Column="1" Height="22" Width="60" HorizontalAlignment="left" SelectionChanged="cmb_DriveSpeed_SelectionChanged">
<ComboBox x:Name="cmb_DriveSpeed" Grid.Row="4" Grid.Column="1" Height="22" Width="60" HorizontalAlignment="left" SelectionChanged="cmb_DriveSpeed_SelectionChanged">
<ComboBoxItem Content="4"/>
<ComboBoxItem Content="8"/>
<ComboBoxItem Content="16"/>

View File

@@ -19,6 +19,7 @@ namespace DICUI
public String outputDirectory;
public String outputFileName;
public String driveSpeed;
public Boolean isCDRom = false;
public Boolean isPSX = false;
public Boolean isXboneOrPS4 = false;
@@ -36,16 +37,16 @@ namespace DICUI
{
txt_OutputFilename.Text = "unknown";
}
cmb_DriveLetter.Items.Add(d.Name.Replace(":\\", ""));
cmb_DriveLetter.Items.Add(d.Name + d.VolumeLabel);
cmb_DriveLetter.SelectedIndex = 0;
txt_OutputDirectory.Text = "ISO" + "\\" + txt_OutputFilename.Text + "\\";
txt_OutputDirectory.Text = "ISO" + "\\" + txt_OutputFilename.Text;
lbl_Status.Content = "CD or DVD found ! Choose your Disc Type";
btn_Start.IsEnabled = true;
cmb_DriveSpeed.Text = "8";
}
else
{
lbl_Status.Content = "No CD or DVD found !";
cmb_DriveLetter.Items.Add(d.Name + " (No Disc Found or Not supported by Windows)");
}
btn_Search.IsEnabled = true;
}
@@ -78,19 +79,23 @@ namespace DICUI
case "Bandai Playdia Quick Interactive System":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "Bandai / Apple Pippin":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "Commodore Amiga CD / CD32 / CDTV":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "Mattel HyperScan":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "Microsoft XBOX":
// Placeholder for later use
@@ -105,11 +110,13 @@ namespace DICUI
break;
case "NEC PC-Engine / TurboGrafx CD":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "NEC PC-FX / PC-FXGA":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "Nintendo GameCube":
// Placeholder for later use
@@ -122,35 +129,42 @@ namespace DICUI
break;
case "Panasonic 3DO":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "Philips CD-i":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "Sega CD / Mega CD":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "Sega Dreamcast":
// Placeholder for later use
break;
case "Sega Saturn":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "SNK Neo Geo CD":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "Sony PlayStation":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
isPSX = true;
break;
case "Sony PlayStation 2 (CD-Rom)":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "Sony PlayStation 2 (DVD-Rom)":
discType = "dvd";
@@ -172,7 +186,8 @@ namespace DICUI
break;
case "VTech V.Flash - V.Smile Pro":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "ZAPiT Games Game Wave Family Entertainment System":
// Placeholder for later use
@@ -187,7 +202,8 @@ namespace DICUI
break;
case "Apple Macintosh (CD-Rom)":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "Apple Macintosh (DVD-Rom)":
discType = "dvd";
@@ -195,11 +211,13 @@ namespace DICUI
break;
case "Fujitsu FM Towns series":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "IBM PC Compatible (CD-Rom)":
discType = "cd";
processArguments = "/c2 /ns /sf /ss";
isCDRom = true;
processArguments = "/c2 20 /ns /sf /ss";
break;
case "IBM PC Compatible (DVD-Rom)":
discType = "dvd";
@@ -207,11 +225,13 @@ namespace DICUI
break;
case "NEC PC-88":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "NEC PC-98":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "Sharp X68000":
// Placeholder for later use
@@ -229,7 +249,8 @@ namespace DICUI
break;
case "Sega Lindbergh":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "Sega Naomi":
// Placeholder for later use
@@ -251,7 +272,8 @@ namespace DICUI
case "Audio CD":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "BD-Video":
discType = "bd";
@@ -262,29 +284,34 @@ namespace DICUI
break;
case "PalmOS":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "Philips CD-i Digital Video":
// Placeholder for later use
break;
case "Photo CD":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "PlayStation GameShark Updates":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "Tao iKTV":
// Placeholder for later use
break;
case "Tomy Kiss-Site":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
case "Video CD":
discType = "cd";
processArguments = "/c2";
isCDRom = true;
processArguments = "/c2 20";
break;
#endregion
@@ -338,6 +365,22 @@ namespace DICUI
processpsx.Start();
processpsx.WaitForExit();
}
if (isCDRom == true)
{
// TODO: Add random string / GUID to end of batch file name so that multiple instances can run at once
using (StreamWriter writetext = new StreamWriter("CDRom.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");
}
Process processpsx = new Process();
processpsx.StartInfo.FileName = "CDRom.bat";
processpsx.Start();
processpsx.WaitForExit();
}
btn_Start.IsEnabled = true;
}
@@ -407,5 +450,13 @@ namespace DICUI
}
}
private void cmb_DriveLetter_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
{
driveLetter = cmb_DriveLetter.SelectedValue.ToString().Substring(0, 1);
Console.WriteLine(driveLetter);
btn_Start.IsEnabled = true;
}
}
}

View File

@@ -1,6 +1,11 @@
# DICUI
This is my current progress on my C# Disc Image Creator UI.
I am using Disc Image Creator, created by Sarami, and would like to thanks him for this great software.
You can get the latest code and released on his github right here:
https://github.com/saramibreak/DiscImageCreator
I'm a hobbyist programmer, so this code might not be optimal, feel free to make your recommendation / Pull request.
I would like this project to be a community project, so if you have some time and knowledge to give, I'll be glad to add you to the contributor of this project :)
@@ -17,9 +22,22 @@ NHellFire - Contributer
Dizzzy - Concept/Ideas/Beta tester
--------------------------------------------------------------------------
2018-05-18
--------------------------------------------------------------------------
Version 1.02b released:
- Fixed XBOX One and PS4 Drive Speed issue. (1.02)
- Started implementing DiscImageCreator Path selection. (1.02)
- Conforming my naming for objects and variable. (1.02)
- Added missing DLL (1.02b)
--------------------------------------------------------------------------
2018-05-14
--------------------------------------------------------------------------
Version 1.01d released:
Download the latest release here:
https://github.com/reignstumble/DICUI/releases