mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use events for messages from MediaScan.
This commit is contained in:
@@ -111,7 +111,14 @@ namespace DiscImageChef.Commands
|
||||
|
||||
Statistics.AddDevice(dev);
|
||||
|
||||
MediaScan scanner = new MediaScan(mhddLogPath, ibgLogPath, devicePath, dev);
|
||||
MediaScan scanner = new MediaScan(mhddLogPath, ibgLogPath, devicePath, dev);
|
||||
scanner.UpdateStatus += Progress.UpdateStatus;
|
||||
scanner.ErrorMessage += Progress.ErrorMessage;
|
||||
scanner.StoppingErrorMessage += Progress.ErrorMessage;
|
||||
scanner.UpdateProgress += Progress.UpdateProgress;
|
||||
scanner.PulseProgress += Progress.PulseProgress;
|
||||
scanner.InitProgress += Progress.InitProgress;
|
||||
scanner.EndProgress += Progress.EndProgress;
|
||||
ScanResults results = scanner.Scan();
|
||||
|
||||
DicConsole.WriteLine("Took a total of {0} seconds ({1} processing commands).", results.TotalTime,
|
||||
|
||||
Reference in New Issue
Block a user