mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add raw DVD reading with HL-DT-ST command (#823)
This commit is contained in:
committed by
GitHub
parent
a2c6b8961a
commit
1153a270a9
@@ -776,10 +776,19 @@ partial class Dump
|
||||
}
|
||||
else
|
||||
{
|
||||
ReadSbcData(blocks, blocksToRead, blockSize, currentTry, extents, ref currentSpeed, ref minSpeed,
|
||||
ref maxSpeed, ref totalDuration, scsiReader, mhddLog, ibgLog, ref imageWriteDuration,
|
||||
ref newTrim, ref dvdDecrypt,
|
||||
mediaTags.TryGetValue(MediaTagType.DVD_DiscKey_Decrypted, out byte[] tag) ? tag : null);
|
||||
mediaTags.TryGetValue(MediaTagType.DVD_DiscKey_Decrypted, out byte[] discKey);
|
||||
if(scsiReader.HldtstReadRaw)
|
||||
{
|
||||
ReadCacheData(blocks, blocksToRead, blockSize, currentTry, extents, ref currentSpeed, ref minSpeed,
|
||||
ref maxSpeed, ref totalDuration, scsiReader, mhddLog, ibgLog, ref imageWriteDuration,
|
||||
ref newTrim, discKey ?? null);
|
||||
}
|
||||
else
|
||||
{
|
||||
ReadSbcData(blocks, blocksToRead, blockSize, currentTry, extents, ref currentSpeed, ref minSpeed,
|
||||
ref maxSpeed, ref totalDuration, scsiReader, mhddLog, ibgLog, ref imageWriteDuration,
|
||||
ref newTrim, ref dvdDecrypt, discKey ?? null);
|
||||
}
|
||||
}
|
||||
|
||||
_dumpStopwatch.Stop();
|
||||
|
||||
Reference in New Issue
Block a user