flush file streamer after each write

This commit is contained in:
Samuliak 2024-12-01 18:57:57 +01:00
parent f71046333d
commit 1752126f5c
No known key found for this signature in database
4 changed files with 18 additions and 5 deletions

View file

@ -116,6 +116,11 @@ void FileStream::extract(std::vector<uint8>& data)
readData(data.data(), fileSize);
}
void FileStream::Flush()
{
m_fileStream.flush();
}
uint32 FileStream::readData(void* data, uint32 length)
{
SyncReadWriteSeek(false);