UI: No game-or-video prompt for a disc whose game is a placeholder

The EUR Video Demo Disc's UMD_DATA.BIN says GVA, but its EBOOT.BIN and BOOT.BIN are all zeroes, so
"Play game" could only fail. It now goes straight to the XMB, like "Watch video". What the disc
reports to the emulated PSP doesn't change.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-23 11:24:55 +02:00
1 parent 9be0dffc41
commit 6597483755
3 files changed
+34

No files matched your search

+5
View File
@@ -126,6 +126,11 @@ static void LaunchFile(ScreenManager *screenManager, Screen *currentScreen, cons
if (!fileLoader || !(DetectUmdDiscType(fileLoader.get()) & PSP_UMD_TYPE_VIDEO)) {
break;
}
if (!UmdHasBootableGame(fileLoader.get())) {
// The game is only a placeholder, so there's just the video.
LaunchInEmuScreen(screenManager, currentScreen, new EmuScreen(vshPath, path, false));
return;
}
auto ga = GetI18NCategory(I18NCat::GAME);
const std::vector<std::string> choices = { std::string(ga->T("Play game")), std::string(ga->T("Watch video")) };
UI::ListPopupScreen *popup = new UI::ListPopupScreen(ga->T("This disc has both a game and video"), choices, -1, [=](int choice) {