From 48e85d1b2f4dafad7c9e1e38994858ec0dfc7b5e Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 14 Nov 2022 01:17:58 +0200 Subject: [PATCH] cdrom: forget old sector on cd change libretro/pcsx_rearmed#689 --- libpcsxcore/cdrom.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.39.5