From dfba0f6b71a1c52c0e6b9451b5e945d54e30596e Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 4 Feb 2018 18:51:38 +0000 Subject: [PATCH] Try to dump CD up to 360000 sectors if the Lead-Out has not been found. --- DiscImageChef.Core/Devices/Dumping/CompactDisc.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/DiscImageChef.Core/Devices/Dumping/CompactDisc.cs b/DiscImageChef.Core/Devices/Dumping/CompactDisc.cs index 92be1351..6d90c547 100644 --- a/DiscImageChef.Core/Devices/Dumping/CompactDisc.cs +++ b/DiscImageChef.Core/Devices/Dumping/CompactDisc.cs @@ -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;