From 81cf59bc21b6d73c4831095377ab804a7e77cd05 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Fri, 2 Sep 2022 14:15:04 +1000 Subject: [PATCH] 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 --- src/duckstation-qt/mainwindow.cpp | 2 +- src/frontend-common/fullscreen_ui.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/duckstation-qt/mainwindow.cpp b/src/duckstation-qt/mainwindow.cpp index 0fa50f946..868338409 100644 --- a/src/duckstation-qt/mainwindow.cpp +++ b/src/duckstation-qt/mainwindow.cpp @@ -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"; diff --git a/src/frontend-common/fullscreen_ui.cpp b/src/frontend-common/fullscreen_ui.cpp index 0c63e812c..15e17472c 100644 --- a/src/frontend-common/fullscreen_ui.cpp +++ b/src/frontend-common/fullscreen_ui.cpp @@ -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 fast_boot)