mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-24 11:49:05 +02:00
Improved error handling in ZIP installer
This commit is contained in:
1 parent
a376f20d54
commit
37de6eee0f
4 files changed
+11
-5
No files matched your search
@@ -71,7 +71,6 @@ UI::EventReturn InstallZipScreen::OnInstall(UI::EventParams ¶ms) {
|
||||
if (g_GameManager.InstallGameOnThread(zipPath_, deleteZipFile_)) {
|
||||
installStarted_ = true;
|
||||
installChoice_->SetEnabled(false);
|
||||
MainScreen::showHomebrewTab = true;
|
||||
}
|
||||
return UI::EVENT_DONE;
|
||||
}
|
||||
@@ -90,6 +89,9 @@ void InstallZipScreen::update(InputState &input) {
|
||||
std::string err = g_GameManager.GetInstallError();
|
||||
if (!err.empty()) {
|
||||
doneView_->SetText(iz->T(err.c_str()));
|
||||
} else if (installStarted_) {
|
||||
doneView_->SetText(iz->T("Installed!"));
|
||||
MainScreen::showHomebrewTab = true;
|
||||
}
|
||||
}
|
||||
UIScreen::update(input);
|
||||
|
||||
Reference in new issue
Block a user