From d66df6bba1c6b9841a9ae22055db19c9858e6cb8 Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 23 Feb 2025 02:11:17 +0200 Subject: [PATCH] cdrom: don't deliver non mode1/2 sectors --- libpcsxcore/cdrom.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index e9c6f884..926e7eca 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -1435,6 +1435,11 @@ static void cdrReadInterrupt(void) if ((cdr.Mode & MODE_SF) && (subhdr->mode & 0x44) == 0x44) // according to nocash deliver_data = 0; + if (buf[3] != 1 && buf[3] != 2) { // according to duckstation + deliver_data = 0; + CDR_LOG_I("%x:%02x:%02x mode %02x ignored\n", + buf[0], buf[1], buf[2], buf[3]); + } /* Croc 2: $40 - only FORM1 (*) -- 2.39.5