From aac23e2e51af77e127d13f44d7439a3475eef8e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 5 Jun 2025 11:38:09 +0200 Subject: [PATCH] Don't offer to play EBOOT.PBP from zip files directly - we don't actually support it yet. --- UI/InstallZipScreen.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/UI/InstallZipScreen.cpp b/UI/InstallZipScreen.cpp index 2607fabf91..05ae5112ad 100644 --- a/UI/InstallZipScreen.cpp +++ b/UI/InstallZipScreen.cpp @@ -102,8 +102,12 @@ void InstallZipScreen::CreateViews() { installChoice_ = rightColumnItems->Add(new Choice(iz->T("Install"))); installChoice_->OnClick.Handle(this, &InstallZipScreen::OnInstall); - playChoice_ = rightColumnItems->Add(new Choice(ga->T("Play"))); - playChoice_->OnClick.Handle(this, &InstallZipScreen::OnPlay); + + // NOTE: We detect PBP isos (like demos) as game dirs currently. Can't play them directly. + if (zipFileInfo_.contents == ZipFileContents::ISO_FILE) { + playChoice_ = rightColumnItems->Add(new Choice(ga->T("Play"))); + playChoice_->OnClick.Handle(this, &InstallZipScreen::OnPlay); + } returnToHomebrew_ = true; showDeleteCheckbox = true;