mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #1560 from unknownbrackets/headless
Verify the header signature when loading a PBP
This commit is contained in:
commit
cafb4a912d
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ bool Load_PSP_ELF_PBP(const char *filename, std::string *error_string)
|
|||
PBPReader reader(filename);
|
||||
|
||||
// Hacky check, should find something better
|
||||
if (reader.GetSubFileSize(PBP_UNKNOWN_PSAR) > 0x100000) {
|
||||
if (reader.IsValid() && reader.GetSubFileSize(PBP_UNKNOWN_PSAR) > 0x100000) {
|
||||
// Yay, got a demo.
|
||||
ISOFileSystem *umd0 = new ISOFileSystem(&pspFileSystem, new NPDRMDemoBlockDevice(filename));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue