Try to dump CD up to 360000 sectors if the Lead-Out has not been found.

This commit is contained in:
2018-02-04 18:51:38 +00:00
parent 83bb2b5b1e
commit dfba0f6b71

View File

@@ -429,6 +429,13 @@ namespace DiscImageChef.Core.Devices.Dumping
lastSector = trk.TrackStartAddress - 1;
}
if(lastSector == 0)
{
DicConsole.WriteLine("WARNING: Could not find Lead-Out start, will try to read up to 360000 sectors, probably will fail before...");
dumpLog.WriteLine("WARNING: Could not find Lead-Out start, will try to read up to 360000 sectors, probably will fail before...");
lastSector = 360000;
}
Track[] tracks = trackList.ToArray();
for(int t = 1; t < tracks.Length; t++) tracks[t - 1].TrackEndSector = tracks[t].TrackStartSector - 1;