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
This commit is contained in:
Martino Fontana 2024-07-27 16:33:47 +02:00
parent 87b7009c12
commit 991bce2d68
1 changed files with 1 additions and 2 deletions

View File

@ -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()