Memcard: Move auto eject countdown out of CDVD up into counters vsync loop

This commit is contained in:
RedPanda4552 2023-12-08 01:44:19 -05:00 committed by Connor McLaughlin
parent 78f751959d
commit da22df5f5d
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,6 @@
#include "IopHw.h"
#include "IopDma.h"
#include "VMManager.h"
#include "SIO/Sio.h"
#include "common/Error.h"
#include "common/FileSystem.h"
@ -1570,7 +1569,6 @@ void cdvdVsync()
cdvd.RTCcount = 0;
cdvdUpdateTrayState();
AutoEject::CountDownTicks();
cdvd.RTC.second++;
if (cdvd.RTC.second < 60)

View File

@ -515,6 +515,8 @@ static __fi void VSyncStart(u32 sCycle)
hwIntcIrq(INTC_VBLANK_S);
psxVBlankStart();
// Memcard auto ejection - Uses a tick system timed off of real time, decrementing one tick per frame.
AutoEject::CountDownTicks();
if (gates)
rcntStartGate(true, sCycle); // Counters Start Gate code