Core: Don't copy default _Enabled sections to user INIs

This commit is contained in:
JosJuice
2020-12-11 15:33:48 +01:00
parent 7d9276c340
commit 11e8783893
3 changed files with 6 additions and 12 deletions

View File

@ -133,10 +133,8 @@ void PatchesWidget::SavePatches()
for (const auto& patch : m_patches)
{
if (patch.enabled)
lines_enabled.emplace_back('$' + patch.name);
else if (patch.default_enabled)
lines_disabled.emplace_back('$' + patch.name);
if (patch.enabled != patch.default_enabled)
(patch.enabled ? lines_enabled : lines_disabled).emplace_back('$' + patch.name);
if (!patch.user_defined)
continue;