From 602769b9d0ff2e97ded9db2a19a822c759b04cb8 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Thu, 30 Dec 2021 08:20:09 +0000 Subject: [PATCH] CDVD: Add Eject IRQ --- pcsx2/CDVD/CDVD.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcsx2/CDVD/CDVD.cpp b/pcsx2/CDVD/CDVD.cpp index ec8d03595c..adc0730899 100644 --- a/pcsx2/CDVD/CDVD.cpp +++ b/pcsx2/CDVD/CDVD.cpp @@ -645,6 +645,7 @@ s32 cdvdCtrlTrayOpen() cdvdUpdateStatus(CDVD_STATUS_TRAY_OPEN); cdvd.Ready = CDVD_DRIVE_DEV9CON; cdvd.Spinning = false; + cdvdSetIrq(1 << Irq_Eject); if (cdvd.Type > 0 || CDVDsys_GetSourceType() == CDVD_SourceType::NoDisc) { @@ -917,6 +918,7 @@ void cdvdNewDiskCB() cdvd.Ready = CDVD_DRIVE_BUSY | CDVD_DRIVE_DEV9CON; cdvd.Tray.trayState = CDVD_DISC_EJECT; cdvd.Spinning = false; + cdvdSetIrq(1 << Irq_Eject); // If it really got ejected, the DVD Reader will report Type 0, so no need to simulate ejection if (cdvd.Type > 0) cdvd.Tray.cdvdActionSeconds = 3;