mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add option to skip hole between data and audio in CD-i Ready discs. Fixes #295
This commit is contained in:
@@ -892,7 +892,8 @@ namespace Aaru.Core.Devices.Dumping
|
||||
Invoke($"Track {trk.TrackSequence} starts at LBA {trk.TrackStartSector} and ends at LBA {trk.TrackEndSector}");
|
||||
#endif
|
||||
|
||||
if(dskType == MediaType.CDIREADY)
|
||||
if(dskType == MediaType.CDIREADY &&
|
||||
!_skipCdireadyHole)
|
||||
{
|
||||
_dumpLog.WriteLine("There will be thousand of errors between track 0 and track 1, that is normal and you can ignore them.");
|
||||
|
||||
@@ -1040,6 +1041,14 @@ namespace Aaru.Core.Devices.Dumping
|
||||
// Start reading
|
||||
start = DateTime.UtcNow;
|
||||
|
||||
if(dskType == MediaType.CDIREADY && _skipCdireadyHole)
|
||||
{
|
||||
ReadCdiReady(blockSize, ref currentSpeed, currentTry, extents, ibgLog, ref imageWriteDuration,
|
||||
leadOutExtents, ref maxSpeed, mhddLog, ref minSpeed, read6, read10, read12, read16, readcd,
|
||||
subSize, supportedSubchannel, supportsLongSectors, ref totalDuration, tracks, subLog,
|
||||
desiredSubchannel, isrcs, ref mcn, subchannelExtents, blocks);
|
||||
}
|
||||
|
||||
ReadCdData(audioExtents, blocks, blockSize, ref currentSpeed, currentTry, extents, ibgLog,
|
||||
ref imageWriteDuration, lastSector, leadOutExtents, ref maxSpeed, mhddLog, ref minSpeed,
|
||||
out newTrim, tracks[0].TrackType != TrackType.Audio, offsetBytes, read6, read10, read12, read16,
|
||||
|
||||
Reference in New Issue
Block a user