When removing a game, tell the recent-files cache.

This commit is contained in:
Henrik Rydgård committed 2025-06-05 11:27:46 +02:00
1 parent 4cc5b230ce
commit b422aecb49
2 files changed
+4 -1

No files matched your search

+1
View File
@@ -564,6 +564,7 @@ UI::EventReturn GameScreen::OnDeleteGame(UI::EventParams &e) {
std::shared_ptr<GameInfo> info = g_gameInfoCache->GetInfo(NULL, gamePath, GameInfoFlags::PARAM_SFO);
info->Delete();
g_gameInfoCache->Clear();
g_recentFiles.Remove(gamePath.c_str());
sm->switchScreen(new MainScreen());
}
}));