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