mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
Force a seek after reading a file from memory card.
Needed by Natsuiro no Sunadokei. Reads and then writes without a flush or seek in between.
This commit is contained in:
parent
630c31b2e7
commit
a37d98b6f2
1 changed files with 3 additions and 0 deletions
|
@ -543,6 +543,9 @@ void CMcServ::Read(uint32* args, uint32 argsSize, uint32* ret, uint32 retSize, u
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret[0] = static_cast<uint32>(file->Read(dst, cmd->size));
|
ret[0] = static_cast<uint32>(file->Read(dst, cmd->size));
|
||||||
|
|
||||||
|
//Sync pointer for games that write after read without seeking or flushing
|
||||||
|
file->Seek(file->Tell(), Framework::STREAM_SEEK_SET);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue