From: notaz Date: Sun, 23 Feb 2025 00:11:17 +0000 (+0200) Subject: cdrom: don't deliver non mode1/2 sectors X-Git-Tag: r25~9 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d66df6bba1c6b9841a9ae22055db19c9858e6cb8;p=pcsx_rearmed.git cdrom: don't deliver non mode1/2 sectors --- 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 (*)