mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-14 02:00:15 +01:00
Memcard: Move auto eject countdown out of CDVD up into counters vsync loop
This commit is contained in:
1 parent
78f751959d
commit
da22df5f5d
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user