Detect all unknown non-removable media as HDD

This commit is contained in:
Darkstar
2021-07-28 21:19:24 +02:00
parent c8fe683e97
commit 1a6a446520

View File

@@ -1450,6 +1450,10 @@ namespace Aaru.Core.Media.Info
containsFloppyPage)
MediaType = MediaType.FlashDrive;
if(MediaType == MediaType.Unknown &&
!dev.IsRemovable)
MediaType = MediaType.GENERIC_HDD;
if(DeviceInfo.ScsiType != PeripheralDeviceTypes.MultiMediaDevice ||
(dev.IsUsb && (scsiMediumType == 0x40 || scsiMediumType == 0x41 || scsiMediumType == 0x42)))
return;