From a1147dae6e7dadc0def660a3067d0e9f519711b0 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sun, 18 Feb 2024 15:39:19 -0600 Subject: VideoCommon: move factory names to be a static inside each action class, so that they can be reused in the future for serialization --- .../GraphicsModSystem/Runtime/GraphicsModActionFactory.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModActionFactory.cpp') 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 Create(std::string_view name, const picojson::value& json_data, std::shared_ptr library) { - if (name == "print") + if (name == PrintAction::factory_name) { return std::make_unique(); } - else if (name == "skip") + else if (name == SkipAction::factory_name) { return std::make_unique(); } - 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)); } -- cgit v1.2.3