mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Send tracklist to output plugin.
This commit is contained in:
@@ -1155,6 +1155,22 @@ namespace DiscImageChef.Core.Devices.Dumping
|
|||||||
StoppingErrorMessage?.Invoke("Error creating output image, not continuing." + Environment.NewLine +
|
StoppingErrorMessage?.Invoke("Error creating output image, not continuing." + Environment.NewLine +
|
||||||
outputPlugin.ErrorMessage);
|
outputPlugin.ErrorMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Send tracklist to output plugin. This may fail if subchannel is set but unsupported.
|
||||||
|
ret = (outputPlugin as IWritableOpticalImage).SetTracks(tracks.ToList());
|
||||||
|
|
||||||
|
if(!ret &&
|
||||||
|
supportedSubchannel == MmcSubchannel.None)
|
||||||
|
{
|
||||||
|
dumpLog.WriteLine("Error sending tracks to output image, not continuing.");
|
||||||
|
dumpLog.WriteLine(outputPlugin.ErrorMessage);
|
||||||
|
|
||||||
|
StoppingErrorMessage?.Invoke("Error sending tracks to output image, not continuing." +
|
||||||
|
Environment.NewLine +
|
||||||
|
outputPlugin.ErrorMessage);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Dumps a compact disc</summary>
|
/// <summary>Dumps a compact disc</summary>
|
||||||
@@ -1200,22 +1216,6 @@ namespace DiscImageChef.Core.Devices.Dumping
|
|||||||
var mhddLog = new MhddLog(outputPrefix + ".mhddlog.bin", dev, blocks, blockSize, blocksToRead);
|
var mhddLog = new MhddLog(outputPrefix + ".mhddlog.bin", dev, blocks, blockSize, blocksToRead);
|
||||||
var ibgLog = new IbgLog(outputPrefix + ".ibg", 0x0008);
|
var ibgLog = new IbgLog(outputPrefix + ".ibg", 0x0008);
|
||||||
|
|
||||||
// Send tracklist to output plugin. This may fail if subchannel is set but unsupported.
|
|
||||||
ret = (outputPlugin as IWritableOpticalImage).SetTracks(tracks.ToList());
|
|
||||||
|
|
||||||
if(!ret &&
|
|
||||||
supportedSubchannel == MmcSubchannel.None)
|
|
||||||
{
|
|
||||||
dumpLog.WriteLine("Error sending tracks to output image, not continuing.");
|
|
||||||
dumpLog.WriteLine(outputPlugin.ErrorMessage);
|
|
||||||
|
|
||||||
StoppingErrorMessage?.Invoke("Error sending tracks to output image, not continuing." +
|
|
||||||
Environment.NewLine +
|
|
||||||
outputPlugin.ErrorMessage);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// If a subchannel is supported, check if output plugin allows us to write it.
|
// If a subchannel is supported, check if output plugin allows us to write it.
|
||||||
if(supportedSubchannel != MmcSubchannel.None)
|
if(supportedSubchannel != MmcSubchannel.None)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user