From 18e67a8ed7b75b6be3848e29236a2227510bb9c8 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Fri, 2 Jan 2009 18:00:12 +0000 Subject: disable buffering for newlib's poor fread() implementation svn-id: r35675 --- backends/fs/stdiostream.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'backends/fs') 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); -- cgit v1.2.3