Move SecureDigital / MultiMediaCard device reporting to non-static class and its UI to CLI.

This commit is contained in:
2018-11-25 18:51:16 +00:00
parent ac29604264
commit b8d0dce8af
2 changed files with 49 additions and 62 deletions

View File

@@ -34,7 +34,6 @@ using System;
using System.IO;
using DiscImageChef.CommonTypes.Metadata;
using DiscImageChef.Console;
using DiscImageChef.Core.Devices.Report;
using DiscImageChef.Core.Devices.Report.SCSI;
using DiscImageChef.Devices;
using Newtonsoft.Json;
@@ -141,11 +140,14 @@ namespace DiscImageChef.Commands
Ata.Report(dev, ref report, options.Debug, ref removable);
break;
case DeviceType.MMC:
report.MultiMediaCard = reporter.MmcSdReport();
break;
case DeviceType.SecureDigital:
SecureDigital.Report(dev, ref report);
report.SecureDigital = reporter.MmcSdReport();
break;
case DeviceType.NVMe:
throw new NotImplementedException("NVMe devices not yet supported.");
break;
case DeviceType.ATAPI:
case DeviceType.SCSI: