| 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 | { |
no outgoing calls
no test coverage detected