mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Added support for extracting SS in Kreon drives.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2017-05-23 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
|
* Commands/MediaInfo.cs:
|
||||||
|
Added support for extracting SS in Kreon drives.
|
||||||
|
|
||||||
2017-05-23 Natalia Portillo <claunia@claunia.com>
|
2017-05-23 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
* Commands/MediaInfo.cs:
|
* Commands/MediaInfo.cs:
|
||||||
|
|||||||
@@ -1079,6 +1079,27 @@ namespace DiscImageChef.Commands
|
|||||||
#endregion Nintendo
|
#endregion Nintendo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if((dskType == MediaType.XGD || dskType == MediaType.XGD2 || dskType == MediaType.XGD3))
|
||||||
|
{
|
||||||
|
// We need to get INQUIRY to know if it is a Kreon drive
|
||||||
|
byte[] inqBuffer;
|
||||||
|
Decoders.SCSI.Inquiry.SCSIInquiry? inq;
|
||||||
|
|
||||||
|
sense = dev.ScsiInquiry(out inqBuffer, out senseBuf);
|
||||||
|
if(!sense)
|
||||||
|
{
|
||||||
|
inq = Decoders.SCSI.Inquiry.Decode(inqBuffer);
|
||||||
|
if(inq.HasValue && inq.Value.KreonPresent)
|
||||||
|
{
|
||||||
|
sense = dev.KreonExtractSS(out cmdBuf, out senseBuf, dev.Timeout, out duration);
|
||||||
|
if(sense)
|
||||||
|
DicConsole.DebugWriteLine("Media-Info command", "KREON EXTRACT SS:\n{0}", Decoders.SCSI.Sense.PrettifySense(senseBuf));
|
||||||
|
else
|
||||||
|
doWriteFile(outputPrefix, "_xbox_ss.bin", "KREON EXTRACT SS", cmdBuf);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(dskType == MediaType.Unknown)
|
if(dskType == MediaType.Unknown)
|
||||||
dskType = MediaTypeFromSCSI.Get((byte)dev.SCSIType, dev.Manufacturer, dev.Model, scsiMediumType, scsiDensityCode, blocks, blockSize);
|
dskType = MediaTypeFromSCSI.Get((byte)dev.SCSIType, dev.Manufacturer, dev.Model, scsiMediumType, scsiDensityCode, blocks, blockSize);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user