mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Detect 3DO discs on media info.
This commit is contained in:
@@ -63,6 +63,9 @@ namespace DiscImageChef.Core.Media.Info
|
||||
{
|
||||
0x50, 0x6C, 0x61, 0x79, 0x53, 0x74, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x33, 0x00, 0x00, 0x00, 0x00
|
||||
};
|
||||
static readonly byte[] OperaId = {
|
||||
0x01, 0x5A, 0x5A, 0x5A, 0x5A, 0x5A, 0x01
|
||||
};
|
||||
|
||||
public ScsiInfo(Device dev)
|
||||
{
|
||||
@@ -1454,6 +1457,14 @@ namespace DiscImageChef.Core.Media.Info
|
||||
ps2BootSectorsHash == PS2_JAPANESE_HASH) MediaType = MediaType.PS2CD;
|
||||
}
|
||||
|
||||
if(sector0 != null)
|
||||
{
|
||||
byte[] syncBytes = new byte[7];
|
||||
Array.Copy(sector0, 0, syncBytes, 0, 7);
|
||||
|
||||
if(OperaId.SequenceEqual(syncBytes)) MediaType = MediaType.ThreeDO;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
// TODO: Check for CD-i Ready
|
||||
|
||||
Reference in New Issue
Block a user