mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
When removing a game, tell the recent-files cache.
This commit is contained in:
1 parent
4cc5b230ce
commit
b422aecb49
2 files changed
+4
-1
No files matched your search
@@ -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());
|
||||
}
|
||||
}));
|
||||
|
||||
@@ -214,6 +214,7 @@ UI::EventReturn InstallZipScreen::OnInstall(UI::EventParams ¶ms) {
|
||||
}
|
||||
if (g_GameManager.InstallZipOnThread(task)) {
|
||||
installStarted_ = true;
|
||||
playChoice_->SetEnabled(false); // need to exit this screen to played the installed one. We could make this smarter.
|
||||
if (installChoice_) {
|
||||
installChoice_->SetEnabled(false);
|
||||
}
|
||||
@@ -243,8 +244,9 @@ void InstallZipScreen::update() {
|
||||
if (doneView_)
|
||||
doneView_->SetText(iz->T(err));
|
||||
} else if (installStarted_) {
|
||||
if (doneView_)
|
||||
if (doneView_) {
|
||||
doneView_->SetText(iz->T("Installed!"));
|
||||
}
|
||||
MainScreen::showHomebrewTab = returnToHomebrew_;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user