mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
InstallZipScreen: Handle the Play choice properly.
This commit is contained in:
1 parent
99d5bcc26d
commit
9cf0c64343
1 file changed
+6
-1
@@ -92,7 +92,7 @@ void InstallZipScreen::CreateSettingsViews(UI::ViewGroup *parent) {
|
||||
installChoice_->OnClick.Handle(this, &InstallZipScreen::OnInstall);
|
||||
|
||||
// NOTE: We detect PBP isos (like demos) as game dirs currently. Can't play them directly.
|
||||
if (zipFileInfo_.contents == ZipFileContents::ISO_FILE) {
|
||||
if (zipFileInfo_.contents == ZipFileContents::ISO_FILE && zipFileInfo_.archiveType == ArchiveType::ZIP) {
|
||||
playChoice_ = parent->Add(new Choice(ga->T("Play"), ImageID("I_PLAY")));
|
||||
playChoice_->OnClick.Handle(this, &InstallZipScreen::OnPlay);
|
||||
}
|
||||
@@ -380,6 +380,11 @@ void InstallZipScreen::update() {
|
||||
if (doneView_) {
|
||||
doneView_->SetText(iz->T("Installed!"));
|
||||
}
|
||||
if (playChoice_) {
|
||||
// Encourage the user to back out and play directly from the main screen,
|
||||
// instead of unpacking into memory.
|
||||
playChoice_->SetEnabled(false);
|
||||
}
|
||||
MainScreen::showHomebrewTab = returnToHomebrew_;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user