mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Use CD-ROM as default when no type detection (fixes #237)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user