From 858ea372a9d04ce46224144a342ca21299c7326e Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Thu, 11 May 2023 02:27:52 -0700 Subject: [PATCH] Fix Jaguar CD detection for Caves of Fear --- src/BizHawk.Emulation.DiscSystem/DiscIdentifier.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/BizHawk.Emulation.DiscSystem/DiscIdentifier.cs b/src/BizHawk.Emulation.DiscSystem/DiscIdentifier.cs index 60be54f3b4..63d60956d3 100644 --- a/src/BizHawk.Emulation.DiscSystem/DiscIdentifier.cs +++ b/src/BizHawk.Emulation.DiscSystem/DiscIdentifier.cs @@ -412,6 +412,14 @@ namespace BizHawk.Emulation.DiscSystem return true; } } + + // special case, Caves of Fear has the header 27 sectors in + _dsr.ReadLBA_2352(_disc.Sessions[2].Tracks[1].LBA + 27, data, 0); + var ss = Encoding.ASCII.GetString(data); + if (ss.Contains("ATARI APPROVED DATA HEADER ATRI") || ss.Contains("TARA IPARPVODED TA AEHDAREA RT")) + { + return true; + } } return false;