mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-23 10:50:01 +00:00
VideoCommon: update skip action to be able to skip lights
This commit is contained in:
parent
dd0ca9c974
commit
a164d84432
2 changed files with 12 additions and 0 deletions
|
@ -25,6 +25,17 @@ void SkipAction::OnEFB(GraphicsModActionData::EFB* efb)
|
|||
*efb->skip = true;
|
||||
}
|
||||
|
||||
void SkipAction::OnLight(GraphicsModActionData::Light* light)
|
||||
{
|
||||
if (!light) [[unlikely]]
|
||||
return;
|
||||
|
||||
if (!light->skip) [[unlikely]]
|
||||
return;
|
||||
|
||||
*light->skip = true;
|
||||
}
|
||||
|
||||
std::string SkipAction::GetFactoryName() const
|
||||
{
|
||||
return "skip";
|
||||
|
|
|
@ -11,5 +11,6 @@ public:
|
|||
static constexpr std::string_view factory_name = "skip";
|
||||
void OnDrawStarted(GraphicsModActionData::DrawStarted*) override;
|
||||
void OnEFB(GraphicsModActionData::EFB*) override;
|
||||
void OnLight(GraphicsModActionData::Light*) override;
|
||||
std::string GetFactoryName() const override;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue