mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Detect media types also in ATA.
This commit is contained in:
@@ -1684,6 +1684,20 @@ namespace DiscImageChef.CommonTypes
|
||||
|
||||
return MediaType.Unknown;
|
||||
}
|
||||
|
||||
public static MediaType
|
||||
GetFromAta(string manufacturer, string model, bool removable, bool compactFlash, bool pcmcia, ulong blocks, uint blockSize)
|
||||
{
|
||||
if(!removable)
|
||||
{
|
||||
if(compactFlash)
|
||||
return MediaType.CompactFlash;
|
||||
|
||||
return pcmcia ? MediaType.PCCardTypeI : MediaType.GENERIC_HDD;
|
||||
}
|
||||
|
||||
return MediaType.Unknown;
|
||||
}
|
||||
}
|
||||
#pragma warning restore RECS0063 // Warns when a culture-aware 'StartsWith' call is used by default.
|
||||
}
|
||||
Reference in New Issue
Block a user