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

This commit is contained in:
RedPanda4552 authored and Connor McLaughlin committed 2023-12-12 12:47:39 +10:00
1 parent 78f751959d
commit da22df5f5d
2 files changed
+2 -2

No files matched your search

-2
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)
+2
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