mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Manually mark manufacturer as "ATA" on Windows so it becomes treated like that.
This commit is contained in:
@@ -196,8 +196,6 @@ namespace DiscImageChef.Devices
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
System.Console.WriteLine("{0}", type);
|
|
||||||
|
|
||||||
if(type == DeviceType.SCSI || type == DeviceType.ATAPI)
|
if(type == DeviceType.SCSI || type == DeviceType.ATAPI)
|
||||||
scsiSense = ScsiInquiry(out inqBuf, out senseBuf);
|
scsiSense = ScsiInquiry(out inqBuf, out senseBuf);
|
||||||
else if(type == DeviceType.ATA)
|
else if(type == DeviceType.ATA)
|
||||||
@@ -212,6 +210,8 @@ namespace DiscImageChef.Devices
|
|||||||
if (ATAID.HasValue)
|
if (ATAID.HasValue)
|
||||||
scsiSense = ScsiInquiry(out inqBuf, out senseBuf);
|
scsiSense = ScsiInquiry(out inqBuf, out senseBuf);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
manufacturer = "ATA";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -449,7 +449,7 @@ namespace DiscImageChef.Devices
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if((scsiSense && (usb || firewire)) || manufacturer == "ATA")
|
if ((scsiSense && (usb || firewire)) || manufacturer == "ATA")
|
||||||
{
|
{
|
||||||
bool ataSense = AtaIdentify(out ataBuf, out errorRegisters);
|
bool ataSense = AtaIdentify(out ataBuf, out errorRegisters);
|
||||||
if(!ataSense)
|
if(!ataSense)
|
||||||
|
|||||||
Reference in New Issue
Block a user