cdrom: fix irq check
authornotaz <notasas@gmail.com>
Thu, 27 Dec 2012 00:21:55 +0000 (02:21 +0200)
committernotaz <notasas@gmail.com>
Thu, 27 Dec 2012 00:21:55 +0000 (02:21 +0200)
libpcsxcore/cdrom.c

index 6b3285c..61e1e7a 100644 (file)
@@ -656,7 +656,7 @@ void cdrPlayInterrupt()
                cdr.Result[0] = cdr.StatP;
                if (cdr.Irq == 0 || cdr.Irq == 0xff) {
                        cdr.Stat = Complete;
-                       if (cdr.Stat != NoIntr)
+                       if (cdr.Reg2 != 0x18)
                                psxHu32ref(0x1070) |= SWAP32(0x4);
                }