VideoCommon: update skip action to be able to skip lights

This commit is contained in:
iwubcode 2023-12-03 17:48:41 -06:00
commit a164d84432
2 changed files with 12 additions and 0 deletions

View file

@ -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";

View file

@ -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;
};