From 93eabef14f64f12903d816bed19222fad74fad40 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 19 Jul 2020 16:20:10 +0100 Subject: [PATCH] Add detection of China Video Disc. --- Aaru.Core/Media/Detection/MMC.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Aaru.Core/Media/Detection/MMC.cs b/Aaru.Core/Media/Detection/MMC.cs index ed086629e..362d9547e 100644 --- a/Aaru.Core/Media/Detection/MMC.cs +++ b/Aaru.Core/Media/Detection/MMC.cs @@ -1569,7 +1569,7 @@ namespace Aaru.Core.Media.Detection ngcdIplLength = BitConverter.ToUInt32(isoSector, rootPos + 10); } - if((name == "VCD" || name == "SVCD") && + if((name == "VCD" || name == "SVCD" || name == "HQVCD") && (isoSector[rootPos + 25] & 0x02) == 0x02) { vcdStart = BitConverter.ToUInt32(isoSector, rootPos + 2); @@ -1842,12 +1842,18 @@ namespace Aaru.Core.Media.Detection return; case "SUPERVCD": - case "HQ-VCD": mediaType = MediaType.SVCD; AaruConsole.DebugWriteLine("Media detection", "Found Super Video CD description file, setting disc type to Super Video CD."); + break; + case "HQ-VCD": + mediaType = MediaType.CVD; + + AaruConsole.DebugWriteLine("Media detection", + "Found China Video Disc description file, setting disc type to China Video Disc."); + break; } }