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

@@ -67,7 +67,7 @@ namespace DiscImageChef.Core.Devices.Dumping
/// Dumps a compact disc
/// </summary>
/// <param name="dskType">Disc type as detected in MMC layer</param>
internal void CompactDisc(ref MediaType dskType, bool dumpFirstTrackPregap)
internal void CompactDisc(ref MediaType dskType)
{
uint subSize;
DateTime start;

View File

@@ -18,7 +18,6 @@ namespace DiscImageChef.Core.Devices.Dumping
readonly string devicePath;
readonly bool doResume;
readonly bool dumpFirstTrackPregap;
readonly DumpLog dumpLog;
readonly bool dumpRaw;
readonly Encoding encoding;
@@ -33,6 +32,7 @@ namespace DiscImageChef.Core.Devices.Dumping
readonly CICMMetadataType preSidecar;
readonly ushort retryPasses;
readonly bool stopOnError;
bool dumpFirstTrackPregap;
Resume resume;
uint skip;

View File

@@ -67,10 +67,10 @@ namespace DiscImageChef.Core.Devices.Dumping
/// <param name="dumpLog">Dump logger</param>
/// <param name="encoding">Encoding to use when analyzing dump</param>
/// <param name="dskType">Disc type as detected in MMC layer</param>
/// <param name="dumpLeadIn">Try to read and dump as much Lead-in as possible</param>
/// <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>
internal void Mmc(ref MediaType dskType, bool dumpLeadIn)
internal void Mmc(ref MediaType dskType)
{
bool sense;
byte[] tmpBuf;
@@ -182,7 +182,7 @@ namespace DiscImageChef.Core.Devices.Dumping
if(compactDisc)
{
CompactDisc(ref dskType, dumpLeadIn);
CompactDisc(ref dskType);
return;
}

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.");