mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Detect when DVD book type is different from drive's firmware profile.
This commit is contained in:
@@ -378,7 +378,7 @@ namespace Aaru.DiscImages
|
||||
_dmi[0] = 0x08;
|
||||
_dmi[1] = 0x02;
|
||||
|
||||
PFI.PhysicalFormatInformation? pfi0 = PFI.Decode(_pfi);
|
||||
PFI.PhysicalFormatInformation? pfi0 = PFI.Decode(_pfi, _imageInfo.MediaType);
|
||||
|
||||
// All discs I tested the disk category and part version (as well as the start PSN for DVD-RAM) where modified by Alcohol
|
||||
// So much for archival value
|
||||
|
||||
@@ -204,7 +204,7 @@ namespace Aaru.DiscImages
|
||||
_dmi[0] = 0x08;
|
||||
_dmi[1] = 0x02;
|
||||
|
||||
PFI.PhysicalFormatInformation? decodedPfi = PFI.Decode(_pfi);
|
||||
PFI.PhysicalFormatInformation? decodedPfi = PFI.Decode(_pfi, MediaType.DVDROM);
|
||||
|
||||
if(decodedPfi.HasValue)
|
||||
AaruConsole.DebugWriteLine("BlindWrite5 plugin", "PFI: {0}", PFI.Prettify(decodedPfi));
|
||||
@@ -904,7 +904,7 @@ namespace Aaru.DiscImages
|
||||
if(_dmi != null &&
|
||||
_pfi != null)
|
||||
{
|
||||
PFI.PhysicalFormatInformation? pfi0 = PFI.Decode(_pfi);
|
||||
PFI.PhysicalFormatInformation? pfi0 = PFI.Decode(_pfi, _imageInfo.MediaType);
|
||||
|
||||
// All discs I tested the disk category and part version (as well as the start PSN for DVD-RAM) where modified by Alcohol
|
||||
// So much for archival value
|
||||
|
||||
@@ -415,7 +415,7 @@ namespace Aaru.DiscImages
|
||||
// It is a DVD
|
||||
if(_mediaTags.TryGetValue(MediaTagType.DVD_PFI, out byte[] pfi))
|
||||
{
|
||||
PFI.PhysicalFormatInformation decPfi = PFI.Decode(pfi).Value;
|
||||
PFI.PhysicalFormatInformation decPfi = PFI.Decode(pfi, _imageInfo.MediaType).Value;
|
||||
|
||||
switch(decPfi.DiskCategory)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user