Use CD-ROM as default when no type detection (fixes #237)

This commit is contained in:
Matt Nadareski
2020-10-11 20:46:24 -07:00
parent 8acabb692f
commit fc6a34d987
3 changed files with 18 additions and 4 deletions

View File

@@ -10,6 +10,10 @@
- Updated to BurnOutSharp 1.4.1
- Added split archives for AppVeyor builds
- Remove subdump from both UI and run steps
- Removed default config file
- Fixed copy protect scan using wrong drive when using UI option
- Changed default to skip fixed drives
- Fixed default media type when skipping type detection
### 1.17.1 (2020-09-14)
- Shuffled some shared, internal UI variables

View File

@@ -125,8 +125,13 @@ namespace DICUI.Avalonia
// Get the drive letter from the selected item
if (this.Find<ComboBox>("DriveLetterComboBox").SelectedItem is Drive drive)
{
// Get the current media type
if (!UIOptions.Options.SkipMediaTypeDetection)
// Get the current media type, if possible
if (UIOptions.Options.SkipMediaTypeDetection)
{
ViewModels.LoggerViewModel.VerboseLog("Media type detection disabled, defaulting to CD-ROM");
CurrentMediaType = MediaType.CDROM;
}
else
{
ViewModels.LoggerViewModel.VerboseLog("Trying to detect media type for drive {0}.. ", drive.Letter);
CurrentMediaType = Validators.GetMediaType(drive);

View File

@@ -114,8 +114,13 @@ namespace DICUI.Windows
// Get the drive letter from the selected item
if (DriveLetterComboBox.SelectedItem is Drive drive)
{
// Get the current media type
if (!UIOptions.Options.SkipMediaTypeDetection)
// Get the current media type, if possible
if (UIOptions.Options.SkipMediaTypeDetection)
{
ViewModels.LoggerViewModel.VerboseLog("Media type detection disabled, defaulting to CD-ROM");
CurrentMediaType = MediaType.CDROM;
}
else
{
ViewModels.LoggerViewModel.VerboseLog("Trying to detect media type for drive {0}.. ", drive.Letter);
CurrentMediaType = Validators.GetMediaType(drive);