From: notaz Date: Sun, 13 Nov 2022 23:17:58 +0000 (+0200) Subject: cdrom: forget old sector on cd change X-Git-Tag: r24~279 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d311cb718868cf9d78238fcbc5643bc2551ae34;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); }