Move MediaTypeFromSCSI to MediaTypeFromDevice.

This commit is contained in:
2020-01-31 23:47:26 +00:00
parent 2a616293fa
commit a53bcbc3b9
2 changed files with 4 additions and 4 deletions

View File

@@ -95,7 +95,7 @@
<Compile Include="Metadata\Version.cs" /> <Compile Include="Metadata\Version.cs" />
<Compile Include="Partition.cs" /> <Compile Include="Partition.cs" />
<Compile Include="MediaType.cs" /> <Compile Include="MediaType.cs" />
<Compile Include="MediaTypeFromSCSI.cs" /> <Compile Include="MediaTypeFromDevice.cs" />
<Compile Include="PluginBase.cs" /> <Compile Include="PluginBase.cs" />
<Compile Include="Structs\Devices\ATA\Identify.cs" /> <Compile Include="Structs\Devices\ATA\Identify.cs" />
<Compile Include="Structs\Devices\SCSI\Enums.cs" /> <Compile Include="Structs\Devices\SCSI\Enums.cs" />

View File

@@ -41,7 +41,7 @@ using System;
namespace DiscImageChef.CommonTypes namespace DiscImageChef.CommonTypes
{ {
#pragma warning disable RECS0063 // Warns when a culture-aware 'StartsWith' call is used by default. #pragma warning disable RECS0063 // Warns when a culture-aware 'StartsWith' call is used by default.
public static class MediaTypeFromScsi public static class MediaTypeFromDevice
{ {
/// <summary>Tries to guess, from SCSI information, the media type of a device and/or its inserted media</summary> /// <summary>Tries to guess, from SCSI information, the media type of a device and/or its inserted media</summary>
/// <param name="scsiPeripheralType">The SCSI Peripheral Type as indicated in the INQUIRY response</param> /// <param name="scsiPeripheralType">The SCSI Peripheral Type as indicated in the INQUIRY response</param>
@@ -52,8 +52,8 @@ namespace DiscImageChef.CommonTypes
/// <param name="blocks">How many blocks are on the media</param> /// <param name="blocks">How many blocks are on the media</param>
/// <param name="blockSize">Size in bytes of each block</param> /// <param name="blockSize">Size in bytes of each block</param>
/// <returns></returns> /// <returns></returns>
public static MediaType Get(byte scsiPeripheralType, string vendor, string model, byte mediumType, public static MediaType GetFromScsi(byte scsiPeripheralType, string vendor, string model, byte mediumType,
byte densityCode, ulong blocks, uint blockSize) byte densityCode, ulong blocks, uint blockSize)
{ {
switch(scsiPeripheralType) switch(scsiPeripheralType)
{ {