From a6436d04f5cf96164b478700d16413665ef0c33a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 21 Jun 2014 18:29:54 -0700 Subject: [PATCH] Support PIC0 in PBP files. --- Core/ELF/PBPReader.h | 2 +- UI/GameInfoCache.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Core/ELF/PBPReader.h b/Core/ELF/PBPReader.h index 791365af12..ab68ea73ba 100644 --- a/Core/ELF/PBPReader.h +++ b/Core/ELF/PBPReader.h @@ -24,7 +24,7 @@ enum PBPSubFile { PBP_PARAM_SFO, PBP_ICON0_PNG, PBP_ICON1_PMF, - PBP_UNKNOWN_PNG, // PIC0? + PBP_PIC0_PNG, PBP_PIC1_PNG, PBP_SND0_AT3, PBP_EXECUTABLE_PSP, diff --git a/UI/GameInfoCache.cpp b/UI/GameInfoCache.cpp index cad1734a91..2fdb9d23bc 100644 --- a/UI/GameInfoCache.cpp +++ b/UI/GameInfoCache.cpp @@ -297,6 +297,11 @@ public: } if (info_->wantFlags & GAMEINFO_WANTBG) { + if (pbp.GetSubFileSize(PBP_PIC0_PNG) > 0) { + lock_guard lock(info_->lock); + pbp.GetSubFileAsString(PBP_PIC0_PNG, &info_->pic0TextureData); + info_->pic0DataLoaded = true; + } if (pbp.GetSubFileSize(PBP_PIC1_PNG) > 0) { lock_guard lock(info_->lock); pbp.GetSubFileAsString(PBP_PIC1_PNG, &info_->pic1TextureData);