mirror of
https://github.com/libretro/ppsspp.git
synced 2025-03-03 06:06:35 +00:00
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.
This commit is contained in:
parent
6f0ea8fcf4
commit
aa6985f5c2
@ -230,6 +230,7 @@ void CPU_Init() {
|
||||
|
||||
if (coreParameter.updateRecent) {
|
||||
g_Config.AddRecent(filename);
|
||||
g_Config.Save();
|
||||
}
|
||||
|
||||
coreState = coreParameter.startPaused ? CORE_STEPPING : CORE_RUNNING;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user