mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Remove DiscImageChef.CommonTypes dependence on DiscImageChef.Decoders.
This commit is contained in:
@@ -35,6 +35,7 @@ using DiscImageChef.CommonTypes.Metadata;
|
||||
using DiscImageChef.Console;
|
||||
using DiscImageChef.Decoders.ATA;
|
||||
using DiscImageChef.Devices;
|
||||
using Identify = DiscImageChef.CommonTypes.Structs.Devices.ATA.Identify;
|
||||
|
||||
namespace DiscImageChef.Core.Devices.Report
|
||||
{
|
||||
|
||||
@@ -34,9 +34,11 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using DiscImageChef.CommonTypes.Metadata;
|
||||
using DiscImageChef.CommonTypes.Structs.Devices.SCSI;
|
||||
using DiscImageChef.Console;
|
||||
using DiscImageChef.Decoders.SCSI;
|
||||
using DiscImageChef.Devices;
|
||||
using Inquiry = DiscImageChef.CommonTypes.Structs.Devices.SCSI.Inquiry;
|
||||
|
||||
namespace DiscImageChef.Core.Devices.Report
|
||||
{
|
||||
@@ -52,12 +54,12 @@ namespace DiscImageChef.Core.Devices.Report
|
||||
if(sense)
|
||||
return null;
|
||||
|
||||
Inquiry.SCSIInquiry? decodedNullable = Inquiry.Decode(buffer);
|
||||
Inquiry? decodedNullable = Inquiry.Decode(buffer);
|
||||
|
||||
if(!decodedNullable.HasValue)
|
||||
return null;
|
||||
|
||||
Inquiry.SCSIInquiry decoded = decodedNullable.Value;
|
||||
Inquiry decoded = decodedNullable.Value;
|
||||
|
||||
// Clear Seagate serial number
|
||||
if(decoded.SeagatePresent &&
|
||||
|
||||
Reference in New Issue
Block a user