cdrom: forget old sector on cd change
authornotaz <notasas@gmail.com>
Sun, 13 Nov 2022 23:17:58 +0000 (01:17 +0200)
committernotaz <notasas@gmail.com>
Sun, 13 Nov 2022 23:17:58 +0000 (01:17 +0200)
libretro/pcsx_rearmed#689

libpcsxcore/cdrom.c

index 18d6bf9..10fc615 100644 (file)
@@ -325,6 +325,7 @@ void cdrLidSeekInterrupt(void)
 
                if (stat.Status & STATUS_SHELLOPEN)
                {
+                       memset(cdr.Prev, 0xff, sizeof(cdr.Prev));
                        cdr.DriveState = DRIVESTATE_LID_OPEN;
                        CDRLID_INT(0x800);
                }