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 20:06:59 +0000 (23:06 +0300)
fixes notaz/pcsx_rearmed#328

libpcsxcore/cdriso.c

index db57b0c..660d109 100644 (file)
@@ -1708,7 +1708,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;
        }