mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Don't try to load bogus isos, carnage awaits.
This commit is contained in:
parent
90e94a6cc8
commit
ade4f76ac1
1 changed files with 5 additions and 4 deletions
|
@ -192,10 +192,6 @@ ISOFileSystem::ISOFileSystem(IHandleAllocator *_hAlloc, BlockDevice *_blockDevic
|
|||
entireISO.flags = 0;
|
||||
entireISO.parent = NULL;
|
||||
|
||||
if (memcmp(desc.cd001, "CD001", 5)) {
|
||||
ERROR_LOG(FILESYS, "ISO looks bogus? trying anyway...");
|
||||
}
|
||||
|
||||
treeroot = new TreeEntry();
|
||||
treeroot->isDirectory = true;
|
||||
treeroot->startingPosition = 0;
|
||||
|
@ -203,6 +199,11 @@ ISOFileSystem::ISOFileSystem(IHandleAllocator *_hAlloc, BlockDevice *_blockDevic
|
|||
treeroot->flags = 0;
|
||||
treeroot->parent = NULL;
|
||||
|
||||
if (memcmp(desc.cd001, "CD001", 5)) {
|
||||
ERROR_LOG(FILESYS, "ISO looks bogus? Giving up...");
|
||||
return;
|
||||
}
|
||||
|
||||
u32 rootSector = desc.root.firstDataSector();
|
||||
u32 rootSize = desc.root.dataLength();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue