diff options
| author | Martino Fontana <tinozzo123@gmail.com> | 2024-07-27 16:33:47 +0200 |
|---|---|---|
| committer | Martino Fontana <tinozzo123@gmail.com> | 2024-07-27 16:45:33 +0200 |
| commit | 991bce2d68ddad63a42318ebd6325603aeb5f693 (patch) | |
| tree | f6497d907edf94cf4579b7a506a7e2326b1a2d3f /Source/Core | |
| parent | 87b7009c126e7792627e2eb4e5a8be52a0bc4586 (diff) | |
Config: Don't depend on `is_dirty` to save SYSCONF during restore
`Layer::Save` only does its thing if the layer has `is_dirty == true`.
But SYSCONF could have been modified by other layers, so if the base layer wasn't made dirty by anything else, then it wouldn't be restored.
Fixes https://bugs.dolphin-emu.org/issues/13580
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/BootManager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/Core/BootManager.cpp b/Source/Core/Core/BootManager.cpp index 81192b4821..52a3ec910f 100644 --- a/Source/Core/Core/BootManager.cpp +++ b/Source/Core/Core/BootManager.cpp @@ -209,8 +209,7 @@ static void RestoreSYSCONF() }, setting.config_info); } - // Save the SYSCONF. - Config::GetLayer(Config::LayerType::Base)->Save(); + ConfigLoaders::SaveToSYSCONF(Config::LayerType::Base); } void RestoreConfig() |
