mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Centralize abort for dumpers
This commit is contained in:
@@ -31,6 +31,7 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
readonly CICMMetadataType preSidecar;
|
||||
readonly ushort retryPasses;
|
||||
readonly bool stopOnError;
|
||||
bool aborted;
|
||||
bool dumpFirstTrackPregap;
|
||||
Resume resume;
|
||||
uint skip;
|
||||
@@ -87,6 +88,7 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
this.nometadata = nometadata;
|
||||
this.notrim = notrim;
|
||||
this.dumpFirstTrackPregap = dumpFirstTrackPregap;
|
||||
aborted = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -136,6 +138,11 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
fs.Close();
|
||||
}
|
||||
|
||||
public void Abort()
|
||||
{
|
||||
aborted = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Event raised when the progress bar is not longer needed
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user