From a52ba0aa7a067ec618316ada4d826768937199ee Mon Sep 17 00:00:00 2001 From: Deterous <138427222+Deterous@users.noreply.github.com> Date: Fri, 19 Jan 2024 17:00:45 +1300 Subject: [PATCH] Detect CDTV discs (#632) --- CHANGELIST.md | 1 + MPF.Core/Data/Drive.cs | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/CHANGELIST.md b/CHANGELIST.md index 15b3bd70..442fd9a1 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -15,6 +15,7 @@ - Retrieve volume label from logs (Deterous) - Correct missing space in PVD (fuzz6001) - Prevent crashing on invalid parameters (Deterous) +- Detect CDTV discs (Deterous) ### 3.0.3 (2023-12-04) diff --git a/MPF.Core/Data/Drive.cs b/MPF.Core/Data/Drive.cs index 2d7ac4df..d8e6f239 100644 --- a/MPF.Core/Data/Drive.cs +++ b/MPF.Core/Data/Drive.cs @@ -307,6 +307,18 @@ namespace MPF.Core.Data return RedumpSystem.BandaiPippin; } + // Commodore CDTV (currently also detects CD32 as CDTV) +#if NET20 || NET35 + if (File.Exists(Path.Combine(Path.Combine(this.Name, "S"), "STARTUP-SEQUENCE")) + || File.Exists(Path.Combine(this.Name, "CDTV.TM"))) +#else + if (File.Exists(Path.Combine(this.Name, "S", "STARTUP-SEQUENCE")) + || File.Exists(Path.Combine(this.Name, "CDTV.TM"))) +#endif + { + return RedumpSystem.CommodoreAmigaCDTV; + } + // Mattel Fisher-Price iXL #if NET20 || NET35 if (File.Exists(Path.Combine(Path.Combine(this.Name, "iXL"), "iXLUpdater.exe")))