Fix dumpers passing class fields amongst them.

This commit is contained in:
2019-04-20 14:18:12 +01:00
parent 552bb57514
commit 4af686c068
4 changed files with 6 additions and 8 deletions

View File

@@ -30,7 +30,6 @@
// Copyright © 2011-2019 Natalia Portillo
// ****************************************************************************/
using System;
using System.Threading;
using DiscImageChef.CommonTypes;
using DiscImageChef.CommonTypes.Interfaces;
@@ -62,7 +61,6 @@ namespace DiscImageChef.Core.Devices.Dumping
/// <param name="dumpFirstTrackPregap">Try to read and dump as much Lead-in as possible</param>
/// <param name="outputPath">Path to output file</param>
/// <param name="formatOptions">Formats to pass to output file plugin</param>
/// <exception cref="ArgumentException">If you asked to dump long sectors from a SCSI Streaming device</exception>
public void Scsi()
{
MediaType dskType = MediaType.Unknown;
@@ -219,7 +217,7 @@ namespace DiscImageChef.Core.Devices.Dumping
Ssc();
return;
case PeripheralDeviceTypes.MultiMediaDevice:
if(outputPlugin is IWritableOpticalImage opticalPlugin) Mmc(ref dskType, dumpFirstTrackPregap);
if(outputPlugin is IWritableOpticalImage opticalPlugin) Mmc(ref dskType);
else
StoppingErrorMessage
?.Invoke("The specified plugin does not support storing optical disc images.");