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/GraphicsModActionFactory.cpp | |
| 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/GraphicsModActionFactory.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModActionFactory.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModActionFactory.cpp b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModActionFactory.cpp index 6ff64aa038..1059595ef1 100644 --- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModActionFactory.cpp +++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModActionFactory.cpp @@ -14,23 +14,23 @@ namespace GraphicsModActionFactory std::unique_ptr<GraphicsModAction> Create(std::string_view name, const picojson::value& json_data, std::shared_ptr<VideoCommon::CustomAssetLibrary> library) { - if (name == "print") + if (name == PrintAction::factory_name) { return std::make_unique<PrintAction>(); } - else if (name == "skip") + else if (name == SkipAction::factory_name) { return std::make_unique<SkipAction>(); } - else if (name == "move") + else if (name == MoveAction::factory_name) { return MoveAction::Create(json_data); } - else if (name == "scale") + else if (name == ScaleAction::factory_name) { return ScaleAction::Create(json_data); } - else if (name == "custom_pipeline") + else if (name == CustomPipelineAction::factory_name) { return CustomPipelineAction::Create(json_data, std::move(library)); } |
