imgfile_sdl: Flush on write.

This commit is contained in:
Rairii 2024-08-22 23:03:22 -07:00 committed by dingusdev
parent 0ce96ffc12
commit aeac232e12

View File

@ -79,5 +79,6 @@ uint64_t ImgFile::write(const void* buf, uint64_t offset, uint64_t length)
{
impl->stream->seekg(offset, std::ios::beg);
impl->stream->write((const char *)buf, length);
impl->stream->flush();
return impl->stream->gcount();
}