PBP: The PBP extension needs to be upper-case.

EBOOT.PBP is an archive format used for PS1 Classics games on PSP and PS3
(and PS4 and probably also PS5)
On PSP case does not matter since the file will be stored in a FAT
filesystem but on PS3 it does matter as it will be stored in a UFS2
filesystem which is case sensitive.

EBOOT.PBP files from the official PS Store comes wrapped in a PKG container
and installes as EBOOT.PBP uppercase. Thus other tools that create
EBOOT.PBP files also create them in uppercase such as POP-FE and PSX2PSP.

Change the *.pbp file selector filter to *.PBP so that the file selector
will find these files on platforms with case-sensitive filesystems.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg 2022-09-02 14:15:04 +10:00 committed by Connor McLaughlin
parent 26159981ce
commit 81cf59bc21
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ static constexpr char DISC_IMAGE_FILTER[] = QT_TRANSLATE_NOOP(
"All File Types (*.bin *.img *.iso *.cue *.chd *.ecm *.mds *.pbp *.exe *.psexe *.ps-exe *.psf *.minipsf "
"*.m3u);;Single-Track "
"Raw Images (*.bin *.img *.iso);;Cue Sheets (*.cue);;MAME CHD Images (*.chd);;Error Code Modeler Images "
"(*.ecm);;Media Descriptor Sidecar Images (*.mds);;PlayStation EBOOTs (*.pbp);;PlayStation Executables (*.exe "
"(*.ecm);;Media Descriptor Sidecar Images (*.mds);;PlayStation EBOOTs (*.pbp *.PBP);;PlayStation Executables (*.exe "
"*.psexe *.ps-exe);;Portable Sound Format Files (*.psf *.minipsf);;Playlists (*.m3u)");
static const char* DEFAULT_THEME_NAME = "darkfusion";

View File

@ -698,8 +698,8 @@ void FullscreenUI::DestroyResources()
ImGuiFullscreen::FileSelectorFilters FullscreenUI::GetDiscImageFilters()
{
return {"*.bin", "*.cue", "*.iso", "*.img", "*.chd", "*.ecm", "*.mds",
"*.psexe", "*.ps-exe", "*.exe", "*.psf", "*.minipsf", "*.m3u", "*.pbp"};
return {"*.bin", "*.cue", "*.iso", "*.img", "*.chd", "*.ecm", "*.mds", "*.psexe",
"*.ps-exe", "*.exe", "*.psf", "*.minipsf", "*.m3u", "*.pbp", "*.PBP"};
}
void FullscreenUI::DoStartPath(std::string path, std::string state, std::optional<bool> fast_boot)