diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2024-02-18 15:39:19 -0600 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2024-02-18 15:45:10 -0600 |
| commit | a1147dae6e7dadc0def660a3067d0e9f519711b0 (patch) | |
| tree | 83800d88946495eeac0c1a1a1cdfda75a82cdf78 /Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/ScaleAction.h | |
| parent | 01571669409f5196cc5b89cba110728d15f30568 (diff) | |
VideoCommon: move factory names to be a static inside each action class, so that they can be reused in the future for serialization
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/ScaleAction.h')
| -rw-r--r-- | Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/ScaleAction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/ScaleAction.h b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/ScaleAction.h index 7192fe0c76..4673ed2d18 100644 --- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/ScaleAction.h +++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/ScaleAction.h @@ -4,6 +4,7 @@ #pragma once #include <memory> +#include <string_view> #include <picojson.h> @@ -12,6 +13,7 @@ class ScaleAction final : public GraphicsModAction { public: + static constexpr std::string_view factory_name = "scale"; static std::unique_ptr<ScaleAction> Create(const picojson::value& json_data); explicit ScaleAction(Common::Vec3 scale); void OnEFB(GraphicsModActionData::EFB*) override; |
