mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
VideoCommon: add ability to serialize graphics mod to json object
This commit is contained in:
@ -5,6 +5,13 @@
|
||||
|
||||
#include "Common/Logging/Log.h"
|
||||
|
||||
void GraphicsModFeatureConfig::SerializeToConfig(picojson::object& json_obj) const
|
||||
{
|
||||
json_obj["group"] = picojson::value{m_group};
|
||||
json_obj["action"] = picojson::value{m_action};
|
||||
json_obj["action_data"] = m_action_data;
|
||||
}
|
||||
|
||||
bool GraphicsModFeatureConfig::DeserializeFromConfig(const picojson::object& obj)
|
||||
{
|
||||
if (auto group_iter = obj.find("group"); group_iter != obj.end())
|
||||
|
Reference in New Issue
Block a user