mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-01-22 13:48:34 +00:00
Fix basic seeking within an lbn raw file.
This commit is contained in:
parent
a59fe8eb0f
commit
b7be025bde
@ -411,8 +411,7 @@ size_t ISOFileSystem::ReadFile(u32 handle, u8 *pointer, s64 size)
|
||||
u32 positionOnIso;
|
||||
if (e.isRawSector)
|
||||
{
|
||||
// TODO: this seems bogus
|
||||
positionOnIso = e.sectorStart * 2048;
|
||||
positionOnIso = e.sectorStart * 2048 + e.seekPos;
|
||||
|
||||
if (e.seekPos + size > e.openSize)
|
||||
{
|
||||
@ -487,7 +486,7 @@ size_t ISOFileSystem::SeekFile(u32 handle, s32 position, FileMove type)
|
||||
break;
|
||||
case FILEMOVE_END:
|
||||
if (e.isRawSector)
|
||||
e.seekPos = e.openSize;
|
||||
e.seekPos = e.openSize + position;
|
||||
else
|
||||
e.seekPos = (unsigned int)(e.file->size + position);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user