InputCommon: Move initial dynamic input texture configuration logic to a 'specification 1' function and load in a 'specification' attribute that defaults to 1 if not present (with 1 being the only valid value at the moment)

This commit is contained in:
iwubcode
2021-02-14 23:14:02 -06:00
parent 10127a0451
commit 55ba1c7c9c
5 changed files with 251 additions and 190 deletions

View File

@ -0,0 +1,18 @@
// Copyright 2021 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <string>
#include <vector>
#include <picojson.h>
#include "InputCommon/DynamicInputTextures/DITData.h"
namespace InputCommon::DynamicInputTextures
{
bool ProcessSpecificationV1(picojson::value& root, std::vector<Data>& input_textures,
const std::string& base_path, const std::string& json_file);
}