From 6565855005a803510875a5c428418b65ff04bf11 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Thu, 25 Mar 2021 23:52:14 +0100 Subject: [PATCH] Qt: clean global cfg before adding custom cfgs --- rpcs3/rpcs3qt/emu_settings.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpcs3/rpcs3qt/emu_settings.cpp b/rpcs3/rpcs3qt/emu_settings.cpp index 737948813e..23e95588b2 100644 --- a/rpcs3/rpcs3qt/emu_settings.cpp +++ b/rpcs3/rpcs3qt/emu_settings.cpp @@ -139,6 +139,10 @@ void emu_settings::LoadSettings(const std::string& title_id) // Add game config if (!title_id.empty()) { + // Remove obsolete settings of the global config before adding the custom settings. + // Otherwise we'll always trigger the "obsolete settings dialog" when editing custom configs. + ValidateSettings(true); + const std::string config_path_new = Emulator::GetCustomConfigPath(m_title_id); const std::string config_path_old = Emulator::GetCustomConfigPath(m_title_id, true); std::string custom_config_path;