From f7a3358b1f0b2681b546135dfd2f23963d248e44 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Mon, 28 Mar 2022 18:59:57 +1000 Subject: [PATCH] pbp: pstitleimg sections are allowed also for single disc games Multidisc games are stored inside the EBOOT.PBP file as A) pstitleimg psisoimg psisoimg ... Single disk games can be stored in two different formats, with or without a pstitleimg section, i.e. as B) pstitleimg psisoimg or C) psisoimg Fix a conditional in duckstation that incorrectly flags B) as an error. These types of EBOOT.PBP files can be created by the pop-fe utility. Signed-off-by: Ronnie Sahlberg --- src/common/cd_image_pbp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/cd_image_pbp.cpp b/src/common/cd_image_pbp.cpp index d8a656298..c1cd3950e 100644 --- a/src/common/cd_image_pbp.cpp +++ b/src/common/cd_image_pbp.cpp @@ -423,7 +423,7 @@ bool CDImagePBP::Open(const char* filename, Common::Error* error) break; } - if (m_disc_offsets.size() < 2) + if (m_disc_offsets.size() < 1) { Log_ErrorPrintf("Invalid number of discs (%u) in multi-disc PBP file", static_cast(m_disc_offsets.size())); return false;