mirror of
https://github.com/aaru-dps/Aaru.CommonTypes.git
synced 2025-12-16 19:24:30 +00:00
Add detection of ISO 10089 1024bps magneto-optical.
This commit is contained in:
@@ -787,6 +787,10 @@ namespace Aaru.CommonTypes
|
||||
ISO_15286_1024 = 656,
|
||||
/// <summary>5,25", M.O., ??????? sectors, 512 bytes/sector, ISO 15286, 4.1Gb/cart</summary>
|
||||
ISO_15286_512 = 657,
|
||||
/// <summary>5,25", M.O., 314569 sectors, 1024 bytes/sector, ISO 10089, 650Mb/cart</summary>
|
||||
ISO_10089 = 658,
|
||||
/// <summary>5,25", M.O., ?????? sectors, 512 bytes/sector, ISO 10089, 594Mb/cart</summary>
|
||||
ISO_10089_512 = 659,
|
||||
#endregion Magneto-optical, types 630 to 659
|
||||
|
||||
#region Other floppy standards, types 660 to 689
|
||||
|
||||
@@ -128,6 +128,12 @@ namespace Aaru.CommonTypes
|
||||
{
|
||||
switch(blocks)
|
||||
{
|
||||
case 314569:
|
||||
AaruConsole.DebugWriteLine("Media detection",
|
||||
"SCSI medium type is {0:X2}h, media has {1} blocks of {2} bytes, setting media type to ISO 10089 conforming 5¼\" magneto-optical.",
|
||||
mediumType, blocks, blockSize);
|
||||
|
||||
return MediaType.ISO_10089;
|
||||
case 371371:
|
||||
AaruConsole.DebugWriteLine("Media detection",
|
||||
"SCSI medium type is {0:X2}h, media has {1} blocks of {2} bytes, setting media type to ECMA-223 conforming 3½\" magneto-optical.",
|
||||
|
||||
@@ -723,6 +723,12 @@ namespace Aaru.CommonTypes
|
||||
mediumType, blocks, blockSize);
|
||||
|
||||
return MediaType.ACORN_35_DS_HD;
|
||||
case 314569 when mediumType == 0x01 || mediumType == 0x02:
|
||||
AaruConsole.DebugWriteLine("Media detection",
|
||||
"SCSI medium type is {0:X2}h, media has {1} blocks of {2} bytes, setting media type to ISO 10089 conforming 5¼\" magneto-optical.",
|
||||
mediumType, blocks, blockSize);
|
||||
|
||||
return MediaType.ISO_10089;
|
||||
case 371371 when mediumType == 0x01 || mediumType == 0x02:
|
||||
AaruConsole.DebugWriteLine("Media detection",
|
||||
"SCSI medium type is {0:X2}h, media has {1} blocks of {2} bytes, setting media type to ECMA-223 conforming 3½\" magneto-optical.",
|
||||
|
||||
@@ -203,6 +203,8 @@ namespace Aaru.CommonTypes.Metadata
|
||||
case CommonTypes.MediaType.ISO_15286:
|
||||
case CommonTypes.MediaType.ISO_15286_1024:
|
||||
case CommonTypes.MediaType.ISO_15286_512:
|
||||
case CommonTypes.MediaType.ISO_10089:
|
||||
case CommonTypes.MediaType.ISO_10089_512:
|
||||
// According to ECMA-183 et al
|
||||
dmns.Height = 153;
|
||||
dmns.HeightSpecified = true;
|
||||
|
||||
@@ -870,6 +870,12 @@ namespace Aaru.CommonTypes.Metadata
|
||||
discType = "5.25\" magneto-optical";
|
||||
discSubType = "ECMA-183";
|
||||
|
||||
break;
|
||||
case CommonTypes.MediaType.ISO_10089:
|
||||
case CommonTypes.MediaType.ISO_10089_512:
|
||||
discType = "5.25\" magneto-optical";
|
||||
discSubType = "ISO 10089";
|
||||
|
||||
break;
|
||||
case CommonTypes.MediaType.ECMA_184_512:
|
||||
case CommonTypes.MediaType.ECMA_184:
|
||||
|
||||
Reference in New Issue
Block a user