| 1 | // Copyright 2022 Dolphin Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #include "VideoCommon/GraphicsModSystem/Runtime/Actions/SkipAction.h" |
| 5 | |
| 6 | void SkipAction::OnDrawStarted(GraphicsModActionData::DrawStarted* draw_started) |
| 7 | { |
| 8 | if (!draw_started) [[unlikely]] |
| 9 | return; |
| 10 | |
| 11 | if (!draw_started->skip) [[unlikely]] |
| 12 | return; |
| 13 | |
| 14 | *draw_started->skip = true; |
| 15 | } |
| 16 | |
| 17 | void SkipAction::BeforeEFB(GraphicsModActionData::PreEFB* efb) |
| 18 | { |
| 19 | if (!efb) [[unlikely]] |
| 20 | return; |
| 21 | |
| 22 | if (!efb->skip) [[unlikely]] |
| 23 | return; |
| 24 | |
| 25 | *efb->skip = true; |
| 26 | } |