mirror of https://github.com/PCSX2/pcsx2.git
Memcard: Move auto eject countdown out of CDVD up into counters vsync loop
This commit is contained in:
parent
78f751959d
commit
da22df5f5d
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue