diff options
author | Andre Heider | 2009-01-02 18:00:12 +0000 |
---|---|---|
committer | Andre Heider | 2009-01-02 18:00:12 +0000 |
commit | 18e67a8ed7b75b6be3848e29236a2227510bb9c8 (patch) | |
tree | 54c4c791f80977d6584ea71b8463d5d08c732338 | |
parent | c1c206a455c2ea5ab0df4051ce8e2f0478a0e1c1 (diff) | |
download | scummvm-rg350-18e67a8ed7b75b6be3848e29236a2227510bb9c8.tar.gz scummvm-rg350-18e67a8ed7b75b6be3848e29236a2227510bb9c8.tar.bz2 scummvm-rg350-18e67a8ed7b75b6be3848e29236a2227510bb9c8.zip |
disable buffering for newlib's poor fread() implementation
svn-id: r35675
-rw-r--r-- | backends/fs/stdiostream.cpp | 5 |
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); |