System: PSF (Portable Sound Format) loading support

This commit is contained in:
Connor McLaughlin
2020-04-17 00:29:56 +10:00
parent 38847de8ee
commit 205297ac27
9 changed files with 288 additions and 10 deletions

View File

@ -201,6 +201,12 @@ bool GameList::IsExeFileName(const char* path)
(StringUtil::Strcasecmp(extension, ".exe") == 0 || StringUtil::Strcasecmp(extension, ".psexe") == 0));
}
bool GameList::IsPsfFileName(const char* path)
{
const char* extension = std::strrchr(path, '.');
return (extension && StringUtil::Strcasecmp(extension, ".psf") == 0);
}
static std::string_view GetFileNameFromPath(const char* path)
{
const char* filename_end = path + std::strlen(path);