Add *.psx as a supported PS-X EXE file type (#3290)

This commit is contained in:
spacepaw
2024-09-06 09:33:19 +02:00
committed by Stenzek
parent 4a2714150e
commit 5b4d625d23
3 changed files with 5 additions and 5 deletions

View File

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

View File

@@ -776,7 +776,7 @@ u32 System::GetFrameTimeHistoryPos()
bool System::IsExeFileName(std::string_view path)
{
return (StringUtil::EndsWithNoCase(path, ".exe") || StringUtil::EndsWithNoCase(path, ".psexe") ||
StringUtil::EndsWithNoCase(path, ".ps-exe"));
StringUtil::EndsWithNoCase(path, ".ps-exe") || StringUtil::EndsWithNoCase(path, ".psx"));
}
bool System::IsPsfFileName(std::string_view path)
@@ -788,7 +788,7 @@ bool System::IsLoadableFilename(std::string_view path)
{
static constexpr const std::array extensions = {
".bin", ".cue", ".img", ".iso", ".chd", ".ecm", ".mds", // discs
".exe", ".psexe", ".ps-exe", // exes
".exe", ".psexe", ".ps-exe", ".psx", // exes
".psf", ".minipsf", // psf
".m3u", // playlists
".pbp",