cdrom: accept more channel bits
authornotaz <notasas@gmail.com>
Sun, 14 Apr 2024 22:52:31 +0000 (01:52 +0300)
committernotaz <notasas@gmail.com>
Sun, 14 Apr 2024 23:42:15 +0000 (02:42 +0300)
Although it contradicts nocash docs, Spyro 2 (PAL) uses 0x21.
Should only 0xff be rejected?

libpcsxcore/cdrom.c

index 5da24c8..83a6de0 100644 (file)
@@ -1399,7 +1399,7 @@ static void cdrReadInterrupt(void)
                        subhdr->file, subhdr->chan, cdr.CurFile, cdr.CurChannel, cdr.FilterFile, cdr.FilterChannel);
                if ((cdr.Mode & MODE_SF) && (subhdr->file != cdr.FilterFile || subhdr->chan != cdr.FilterChannel))
                        break;
-               if (subhdr->chan & 0xe0) { // ?
+               if (subhdr->chan & 0x80) { // ?
                        if (subhdr->chan != 0xff)
                                log_unhandled("adpcm %d:%d\n", subhdr->file, subhdr->chan);
                        break;