mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Process resume file.
This commit is contained in:
@@ -102,6 +102,10 @@ namespace DiscImageChef.Core.Devices.Dumping
|
|||||||
Track[] tracks;
|
Track[] tracks;
|
||||||
var leadOutExtents = new ExtentsULong();
|
var leadOutExtents = new ExtentsULong();
|
||||||
bool supportsLongSectors = true;
|
bool supportsLongSectors = true;
|
||||||
|
DumpHardwareType currentTry = null;
|
||||||
|
ExtentsULong extents = null;
|
||||||
|
DateTime timeSpeedStart = DateTime.UtcNow;
|
||||||
|
ulong sectorSpeedStart = 0;
|
||||||
|
|
||||||
Dictionary<MediaTagType, byte[]> mediaTags = new Dictionary<MediaTagType, byte[]>(); // Media tags
|
Dictionary<MediaTagType, byte[]> mediaTags = new Dictionary<MediaTagType, byte[]>(); // Media tags
|
||||||
|
|
||||||
@@ -547,6 +551,17 @@ namespace DiscImageChef.Core.Devices.Dumping
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ResumeSupport.Process(true, true, blocks, dev.Manufacturer, dev.Model, dev.Serial, dev.PlatformId,
|
||||||
|
ref resume, ref currentTry, ref extents);
|
||||||
|
|
||||||
|
if(currentTry == null ||
|
||||||
|
extents == null)
|
||||||
|
{
|
||||||
|
StoppingErrorMessage?.Invoke("Could not process resume file, not continuing...");
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// ATIP exists on blank CDs
|
// ATIP exists on blank CDs
|
||||||
dumpLog.WriteLine("Reading ATIP");
|
dumpLog.WriteLine("Reading ATIP");
|
||||||
UpdateStatus?.Invoke("Reading ATIP");
|
UpdateStatus?.Invoke("Reading ATIP");
|
||||||
@@ -1022,17 +1037,6 @@ namespace DiscImageChef.Core.Devices.Dumping
|
|||||||
DumpHardwareType currentTry = null;
|
DumpHardwareType currentTry = null;
|
||||||
ExtentsULong extents = null;
|
ExtentsULong extents = null;
|
||||||
|
|
||||||
ResumeSupport.Process(true, true, blocks, dev.Manufacturer, dev.Model, dev.Serial, dev.PlatformId,
|
|
||||||
ref resume, ref currentTry, ref extents);
|
|
||||||
|
|
||||||
if(currentTry == null ||
|
|
||||||
extents == null)
|
|
||||||
{
|
|
||||||
StoppingErrorMessage?.Invoke("Could not process resume file, not continuing...");
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
DateTime timeSpeedStart = DateTime.UtcNow;
|
DateTime timeSpeedStart = DateTime.UtcNow;
|
||||||
ulong sectorSpeedStart = 0;
|
ulong sectorSpeedStart = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user