mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix device report not reading PFI and DMI from Nintendo optical discs.
This commit is contained in:
@@ -754,6 +754,28 @@ namespace Aaru.Core.Devices.Report
|
||||
break;
|
||||
case "Nintendo GameCube game":
|
||||
case "Nintendo Wii game":
|
||||
AaruConsole.WriteLine("Querying DVD PFI...");
|
||||
|
||||
mediaTest.CanReadPFI = !_dev.ReadDiscStructure(out buffer, out senseBuffer,
|
||||
MmcDiscStructureMediaType.Dvd, 0, 0,
|
||||
MmcDiscStructureFormat.PhysicalInformation, 0,
|
||||
_dev.Timeout, out _);
|
||||
|
||||
AaruConsole.DebugWriteLine("SCSI Report", "Sense = {0}", !mediaTest.CanReadPFI);
|
||||
|
||||
mediaTest.PfiData = buffer;
|
||||
|
||||
AaruConsole.WriteLine("Querying DVD DMI...");
|
||||
|
||||
mediaTest.CanReadDMI = !_dev.ReadDiscStructure(out buffer, out senseBuffer,
|
||||
MmcDiscStructureMediaType.Dvd, 0, 0,
|
||||
MmcDiscStructureFormat.DiscManufacturingInformation,
|
||||
0, _dev.Timeout, out _);
|
||||
|
||||
AaruConsole.DebugWriteLine("SCSI Report", "Sense = {0}", !mediaTest.CanReadDMI);
|
||||
|
||||
mediaTest.DmiData = buffer;
|
||||
|
||||
AaruConsole.WriteLine("Querying DVD BCA...");
|
||||
|
||||
mediaTest.CanReadBCA = !_dev.ReadDiscStructure(out buffer, out senseBuffer,
|
||||
|
||||
Reference in New Issue
Block a user