mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-08-15 09:27:27 +00:00
Avoid flush on web ports
This commit is contained in:
@@ -79,6 +79,8 @@ uint64_t ImgFile::write(const void* buf, uint64_t offset, uint64_t length)
|
|||||||
{
|
{
|
||||||
impl->stream->seekg(offset, std::ios::beg);
|
impl->stream->seekg(offset, std::ios::beg);
|
||||||
impl->stream->write((const char *)buf, length);
|
impl->stream->write((const char *)buf, length);
|
||||||
|
#if defined(WIN32) || defined(__APPLE__) || defined(__linux)
|
||||||
impl->stream->flush();
|
impl->stream->flush();
|
||||||
|
#endif
|
||||||
return impl->stream->gcount();
|
return impl->stream->gcount();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user