mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-22 15:29:58 +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->write((const char *)buf, length);
|
||||
impl->stream->flush();
|
||||
#if defined(WIN32) || defined(__APPLE__) || defined(__linux)
|
||||
impl->stream->flush();
|
||||
#endif
|
||||
return impl->stream->gcount();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user