1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

Qt: clean global cfg before adding custom cfgs

This commit is contained in:
Megamouse 2021-03-25 23:52:14 +01:00
parent 9f80a55652
commit 6565855005

View File

@ -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;