cdrom: only need to read for cdda
authornotaz <notasas@gmail.com>
Tue, 13 Nov 2012 00:04:52 +0000 (02:04 +0200)
committernotaz <notasas@gmail.com>
Tue, 13 Nov 2012 00:04:56 +0000 (02:04 +0200)
otherwise it's already there?

libpcsxcore/cdrom.c

index 1aa958b..ce0d66b 100644 (file)
@@ -962,8 +962,9 @@ void cdrInterrupt() {
                        subq = (struct SubQ *)CDR_getBufferSub();
 
                        if (subq != NULL) {
-                               // update subq
-                               ReadTrack( cdr.SetSectorPlay );
+                               if( cdr.Play && (cdr.Mode & MODE_CDDA) && !(cdr.Mode & (MODE_AUTOPAUSE|MODE_REPORT)) )
+                                       // update subq
+                                       ReadTrack( cdr.SetSectorPlay );
 
                                cdr.Result[0] = subq->TrackNumber;
                                cdr.Result[1] = subq->IndexNumber;