Add more support of patchers

This commit is contained in:
sum2012 2013-03-02 00:48:20 +08:00
parent 28575d4672
commit b32411c9e0

View File

@ -93,6 +93,29 @@ bool Load_PSP_ISO(const char *filename, std::string *error_string)
if (pspFileSystem.GetFileInfo("disc0:/PSP_GAME/SYSDIR/EBOOT.DAT").exists) {
bootpath = "disc0:/PSP_GAME/SYSDIR/EBOOT.DAT";
}
// bypass more patchers
if (pspFileSystem.GetFileInfo("disc0:/PSP_GAME/SYSDIR/EBOOT.BI").exists) {
bootpath = "disc0:/PSP_GAME/SYSDIR/EBOOT.BI";
}
if (pspFileSystem.GetFileInfo("disc0:/PSP_GAME/SYSDIR/EBOOT.LLD").exists) {
bootpath = "disc0:/PSP_GAME/SYSDIR/EBOOT.LLD";
}
if (pspFileSystem.GetFileInfo("disc0:/PSP_GAME/SYSDIR/OLD_EBOOT.BIN").exists) {
bootpath = "disc0:/PSP_GAME/SYSDIR/OLD_EBOOT.BIN";
}
if (pspFileSystem.GetFileInfo("disc0:/PSP_GAME/SYSDIR/EBOOT.123").exists) {
bootpath = "disc0:/PSP_GAME/SYSDIR/EBOOT.123";
}
if (pspFileSystem.GetFileInfo("disc0:/PSP_GAME/SYSDIR/EBOOT_LRC_CH.BIN").exists) {
bootpath = "disc0:/PSP_GAME/SYSDIR/EBOOT_LRC_CH.BIN";
}
if (pspFileSystem.GetFileInfo("disc0:/PSP_GAME/SYSDIR/BOOT0.OLD").exists) {
bootpath = "disc0:/PSP_GAME/SYSDIR/BOOT0.OLD";
}
if (pspFileSystem.GetFileInfo("disc0:/PSP_GAME/SYSDIR/BOOT1.OLD").exists) {
bootpath = "disc0:/PSP_GAME/SYSDIR/BOOT1.OLD";
}
bool hasEncrypted = false;
u32 fd;
if ((fd = pspFileSystem.OpenFile(bootpath, FILEACCESS_READ)) != 0)