mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-12 21:31:39 +00:00
Core: Save the disabling of default enabled codes
The previous commit adjusted the code for loading and this commit adjusts the code for saving.
This commit is contained in:
parent
366cfd0f8c
commit
d77a9ad1b6
7 changed files with 48 additions and 14 deletions
|
@ -110,6 +110,12 @@ void LoadPatchSection(const std::string& section, std::vector<Patch>& patches, I
|
|||
}
|
||||
|
||||
ReadEnabledAndDisabled(*ini, section, &patches);
|
||||
|
||||
if (ini == &globalIni)
|
||||
{
|
||||
for (Patch& patch : patches)
|
||||
patch.default_enabled = patch.enabled;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue