MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / rcntCanCount

Function rcntCanCount

pcsx2/Counters.cpp:723–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721
722
723__fi bool rcntCanCount(int i)
724{
725 if (!counters[i].mode.IsCounting)
726 return false;
727
728 if (!counters[i].mode.EnableGate)
729 return true;
730
731 // If we're in gate mode, we can only count if it's not both gated and counting on HBLANK or GateMode is not 0 (Count only when low) or the signal is low.
732 return ((counters[i].mode.GateSource == 0 && counters[i].mode.ClockSource != 3 && (hsyncCounter.Mode == MODE_HRENDER || counters[i].mode.GateMode != 0)) ||
733 (counters[i].mode.GateSource == 1 && (vsyncCounter.Mode == MODE_VRENDER || counters[i].mode.GateMode != 0)));
734}
735
736__fi void rcntSyncCounter(int i)
737{

Callers 4

_rcntSetFunction · 0.85
rcntSyncCounterFunction · 0.85
rcntUpdateFunction · 0.85
rcntStartGateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected