From bc7bc87941e7accb2ea8432b313f90fb6f934669 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 11 Jan 2014 08:34:04 -0800 Subject: [PATCH] The total size of umd0: is in blocks. Therefore sceIoLseek(umd0:, 0, 2) should return the number of blocks, not the number of bytes, in the iso. Looks like this may help Zero no Kiseki. --- Core/FileSystems/ISOFileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/FileSystems/ISOFileSystem.cpp b/Core/FileSystems/ISOFileSystem.cpp index 60a0b1e94c..fcdc2794aa 100644 --- a/Core/FileSystems/ISOFileSystem.cpp +++ b/Core/FileSystems/ISOFileSystem.cpp @@ -192,7 +192,7 @@ ISOFileSystem::ISOFileSystem(IHandleAllocator *_hAlloc, BlockDevice *_blockDevic entireISO.name = ""; entireISO.isDirectory = false; entireISO.startingPosition = 0; - entireISO.size = _blockDevice->GetNumBlocks() * _blockDevice->GetBlockSize(); + entireISO.size = _blockDevice->GetNumBlocks(); entireISO.flags = 0; entireISO.parent = NULL;