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

This commit is contained in:
Henrik Rydgard committed 2013-06-22 18:51:06 +02:00
1 parent 67c185f8ea
commit 3b9e365b1e
1 file changed
+3 -1
+3 -1
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;
}