bug fix about ISOfilesystem and sceIo

This commit is contained in:
tpu
2013-07-06 23:42:49 +08:00
parent a599bf7500
commit 3ac9aa9cfb
2 changed files with 21 additions and 4 deletions
+5
View File
@@ -368,6 +368,11 @@ u32 ISOFileSystem::OpenFile(std::string filename, FileAccess access)
entry.isRawSector = true;
entry.sectorStart = sectorStart;
entry.openSize = readSize;
// when open as "umd1:/sce_lbn0x0_size0x6B49D200", that mean open umd1 as a block device.
// the param in sceIoLseek and sceIoRead is lba mode. we must mark it.
if(sectorStart==0 && readSize>=blockDevice->GetNumBlocks()*2048)
entry.file = &entireISO;
entries[newHandle] = entry;
return newHandle;
}