From aa6985f5c2151ef8dbd5e44224f3081f7cb28b55 Mon Sep 17 00:00:00 2001 From: Peter Tissen Date: Fri, 13 Feb 2015 10:10:42 +0100 Subject: [PATCH] Save after changing recent list regarding #7472 . If this is not done then the config file (the main config, the per-game config files do not have recent entries) is loaded when a game with game-specific settings is touched. --- Core/System.cpp | 1 + UI/GameInfoCache.cpp | 1 + UI/GameScreen.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/Core/System.cpp b/Core/System.cpp index 7f192f4573..8fb985b30f 100644 --- a/Core/System.cpp +++ b/Core/System.cpp @@ -230,6 +230,7 @@ void CPU_Init() { if (coreParameter.updateRecent) { g_Config.AddRecent(filename); + g_Config.Save(); } coreState = coreParameter.startPaused ? CORE_STEPPING : CORE_RUNNING; diff --git a/UI/GameInfoCache.cpp b/UI/GameInfoCache.cpp index e825ae6610..e8ff6efe24 100644 --- a/UI/GameInfoCache.cpp +++ b/UI/GameInfoCache.cpp @@ -59,6 +59,7 @@ bool GameInfo::DeleteGame() { auto i = std::find(g_Config.recentIsos.begin(), g_Config.recentIsos.end(), fileToRemove); if (i != g_Config.recentIsos.end()) { g_Config.recentIsos.erase(i); + g_Config.Save(); } return true; } diff --git a/UI/GameScreen.cpp b/UI/GameScreen.cpp index a4ac8931d7..562e1f16ac 100644 --- a/UI/GameScreen.cpp +++ b/UI/GameScreen.cpp @@ -301,6 +301,7 @@ UI::EventReturn GameScreen::OnRemoveFromRecent(UI::EventParams &e) { if (!strcmp((*it).c_str(), gamePath_.c_str())) { #endif g_Config.recentIsos.erase(it); + g_Config.Save(); screenManager()->switchScreen(new MainScreen()); return UI::EVENT_DONE; }