cdriso: unbreak chd cdda
authornotaz <notasas@gmail.com>
Wed, 25 Oct 2023 20:06:59 +0000 (23:06 +0300)
committernotaz <notasas@gmail.com>
Wed, 25 Oct 2023 22:22:07 +0000 (01:22 +0300)
fixes notaz/pcsx_rearmed#328

libpcsxcore/cdriso.c

index c1a9cc7..cb51060 100644 (file)
@@ -1976,7 +1976,7 @@ long CALLBACK ISOreadCDDA(unsigned char m, unsigned char s, unsigned char f, uns
                        }
                }
        }
-       if (!handle) {
+       if (!handle && !chd_img) {
                memset(buffer, 0, CD_FRAMESIZE_RAW);
                return -1;
        }