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:
Jean-Philip Desjardins 2022-03-25 15:11:52 -04:00
parent 630c31b2e7
commit a37d98b6f2

View file

@ -543,6 +543,9 @@ void CMcServ::Read(uint32* args, uint32 argsSize, uint32* ret, uint32 retSize, u
else
{
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);
}
}