Add an error message specifically for PS1 eboots.

This commit is contained in:
The Dax 2013-08-12 01:23:33 -04:00
parent 8e22554fb0
commit 27f0f9bc65
2 changed files with 9 additions and 0 deletions

View File

@ -112,6 +112,10 @@ IdentifiedFileType Identify_File(std::string &filename)
if (psar_id == 'MUPN') {
return FILETYPE_PSP_ISO_NP;
}
// PS1 PSAR begins with "PSISOIMG0000"
if (psar_id == 'SISP') {
return FILETYPE_PSP_PS1_PBP;
}
// Let's check if we got pointed to a PBP within such a directory.
// If so we just move up and return the directory itself as the game.
@ -177,6 +181,10 @@ bool LoadFile(std::string &filename, std::string *error_string) {
pspFileSystem.SetStartingDirectory("disc0:/PSP_GAME/USRDIR");
return Load_PSP_ISO(filename.c_str(), error_string);
case FILETYPE_PSP_PS1_PBP:
*error_string = "PS1 EBOOTs are not supported by PPSSPP.";
break;
case FILETYPE_ERROR:
ERROR_LOG(LOADER, "Could not read file");
*error_string = "Error reading file";

View File

@ -35,6 +35,7 @@ enum IdentifiedFileType {
// Try to reduce support emails...
FILETYPE_ARCHIVE_RAR,
FILETYPE_ARCHIVE_ZIP,
FILETYPE_PSP_PS1_PBP,
FILETYPE_UNKNOWN
};