mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-10 13:29:38 +00:00
Avoid flush on web ports
This commit is contained in:
parent
f6dc704aff
commit
c8e2a4d921
@ -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);
|
||||||
impl->stream->flush();
|
#if defined(WIN32) || defined(__APPLE__) || defined(__linux)
|
||||||
|
impl->stream->flush();
|
||||||
|
#endif
|
||||||
return impl->stream->gcount();
|
return impl->stream->gcount();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user