Allow ELFs to be named PBP, there are a bunch of such homebrew floating around it seems

This commit is contained in:
Henrik Rydgard 2013-06-22 18:50:40 +02:00
parent 67c185f8ea
commit 3b9e365b1e

View File

@ -87,8 +87,10 @@ EmuFileType Identify_File(std::string &filename)
if (id == 'FLE\x7F')
{
// There are a few elfs misnamed as pbp (like Trig Wars), accept that.
if (!strcasecmp(extension.c_str(), ".plf") || strstr(filename.c_str(),"BOOT.BIN") ||
!strcasecmp(extension.c_str(), ".elf") || !strcasecmp(extension.c_str(), ".prx") )
!strcasecmp(extension.c_str(), ".elf") || !strcasecmp(extension.c_str(), ".prx") ||
!strcasecmp(extension.c_str(), ".pbp"))
{
return FILETYPE_PSP_ELF;
}