mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #9319 from JosJuice/default-enabled-no-propagate
Core: Don't copy default _Enabled sections to user INIs
This commit is contained in:
commit
9bb8107a05
@ -285,10 +285,8 @@ void SaveCodes(IniFile* local_ini, const std::vector<ARCode>& codes)
|
||||
|
||||
for (const ActionReplay::ARCode& code : codes)
|
||||
{
|
||||
if (code.enabled)
|
||||
enabled_lines.emplace_back('$' + code.name);
|
||||
else if (code.default_enabled)
|
||||
disabled_lines.emplace_back('$' + code.name);
|
||||
if (code.enabled != code.default_enabled)
|
||||
(code.enabled ? enabled_lines : disabled_lines).emplace_back('$' + code.name);
|
||||
|
||||
if (code.user_defined)
|
||||
{
|
||||
|
@ -242,10 +242,8 @@ void SaveCodes(IniFile& inifile, const std::vector<GeckoCode>& gcodes)
|
||||
|
||||
for (const GeckoCode& geckoCode : gcodes)
|
||||
{
|
||||
if (geckoCode.enabled)
|
||||
enabled_lines.emplace_back('$' + geckoCode.name);
|
||||
else if (geckoCode.default_enabled)
|
||||
disabled_lines.emplace_back('$' + geckoCode.name);
|
||||
if (geckoCode.enabled != geckoCode.default_enabled)
|
||||
(geckoCode.enabled ? enabled_lines : disabled_lines).emplace_back('$' + geckoCode.name);
|
||||
|
||||
SaveGeckoCode(lines, geckoCode);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user