Move dumping CD first track pregap to a later point in dumping process.

This commit is contained in:
2025-10-23 11:22:15 +01:00
parent e2d4ea76b8
commit c7eee1b291

View File

@@ -936,10 +936,6 @@ sealed partial class Dump
dskType = MediaType.CDI;
}
// Try to read the first track pregap
if(_dumpFirstTrackPregap && readcd)
ReadCdFirstTrackPregap(blockSize, ref currentSpeed, mediaTags, supportedSubchannel, ref totalDuration);
UpdateStatus?.Invoke(string.Format(Localization.Core.Reading_0_sectors_at_a_time, _maximumReadable));
UpdateStatus?.Invoke(string.Format(Localization.Core.Device_reports_0_blocks_1_bytes,
@@ -1241,6 +1237,10 @@ sealed partial class Dump
_mediaGraph?.PaintSectorsBad(_resume.BadBlocks);
}
// Try to read the first track pregap
if(_dumpFirstTrackPregap && readcd)
ReadCdFirstTrackPregap(blockSize, ref currentSpeed, mediaTags, supportedSubchannel, ref totalDuration);
audioExtents = new ExtentsULong();
foreach(Track audioTrack in tracks.Where(t => t.Type == TrackType.Audio))