aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/fs/stdiostream.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/fs/stdiostream.cpp b/backends/fs/stdiostream.cpp
index d0592c8e50..21a01fcd6c 100644
--- a/backends/fs/stdiostream.cpp
+++ b/backends/fs/stdiostream.cpp
@@ -155,6 +155,11 @@ StdioStream *StdioStream::makeFromPath(const Common::String &path, bool writeMod
}
#endif
+#if defined(__WII__)
+ // disable newlib's buffering, the device libraries handle caching
+ if (handle)
+ setvbuf(handle, NULL, _IONBF, 0);
+#endif
if (handle)
return new StdioStream(handle);