Strengthen the detection of needing to dump DVD title keys

This commit is contained in:
Rebecca Wallander
2021-01-19 15:19:01 +01:00
parent 1541b64e1f
commit beca676da1
2 changed files with 73 additions and 70 deletions

View File

@@ -668,7 +668,9 @@ namespace Aaru.Core.Devices.Dumping
bool newTrim = false;
if(Settings.Settings.Current.EnableDecryption && _titleKeys)
if(Settings.Settings.Current.EnableDecryption &&
_titleKeys &&
dskType == MediaType.DVDROM)
{
UpdateStatus?.Invoke("Title keys dumping is enabled. This will be very slow.");
_resume.MissingTitleKeys ??= new List<ulong>(Enumerable.Range(0, (int)blocks).Select(n => (ulong)n));
@@ -1209,4 +1211,4 @@ namespace Aaru.Core.Devices.Dumping
Statistics.AddMedia(dskType, true);
}
}
}
}