ConfigLoaders: Temporarily not save all settings

This commit is contained in:
MerryMage
2017-05-13 15:59:20 +01:00
parent b3197d8dce
commit 57264022ce
7 changed files with 57 additions and 0 deletions

View File

@ -20,6 +20,7 @@
#include "Core/Config/Config.h"
#include "Core/ConfigLoaders/GameConfigLoader.h"
#include "Core/ConfigLoaders/IsSettingSaveable.h"
namespace ConfigLoaders
{
@ -382,6 +383,9 @@ void INIGameConfigLayerLoader::Save(Config::Layer* config_layer)
{
for (const auto& value : section->GetValues())
{
if (!IsSettingSaveable({system.first, section->GetName(), value.first}))
continue;
const auto ini_location =
GetINILocationFromConfig({system.first, section->GetName(), value.first});
if (ini_location.first.empty() && ini_location.second.empty())