From 991bce2d68ddad63a42318ebd6325603aeb5f693 Mon Sep 17 00:00:00 2001 From: Martino Fontana Date: Sat, 27 Jul 2024 16:33:47 +0200 Subject: [PATCH] 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 --- Source/Core/Core/BootManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 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()