Support PIC0 in PBP files.

This commit is contained in:
Unknown W. Brackets 2014-06-21 18:29:54 -07:00
parent a0340debd6
commit a6436d04f5
2 changed files with 6 additions and 1 deletions

View File

@ -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,

View File

@ -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);