From: notaz Date: Sun, 13 Nov 2022 23:17:58 +0000 (+0200) Subject: cdrom: forget old sector on cd change X-Git-Tag: r24l~339 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48e85d1b2f4dafad7c9e1e38994858ec0dfc7b5e;p=pcsx_rearmed.git cdrom: forget old sector on cd change libretro/pcsx_rearmed#689 --- diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index 18d6bf9e..10fc6156 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -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); }