[Scummvm-cvs-logs] SF.net SVN: scummvm:[35675] scummvm/trunk/backends/fs/stdiostream.cpp
dhewg at users.sourceforge.net
dhewg at users.sourceforge.net
Fri Jan 2 19:00:12 CET 2009
Revision: 35675
http://scummvm.svn.sourceforge.net/scummvm/?rev=35675&view=rev
Author: dhewg
Date: 2009-01-02 18:00:12 +0000 (Fri, 02 Jan 2009)
Log Message:
-----------
disable buffering for newlib's poor fread() implementation
Modified Paths:
--------------
scummvm/trunk/backends/fs/stdiostream.cpp
Modified: scummvm/trunk/backends/fs/stdiostream.cpp
===================================================================
--- scummvm/trunk/backends/fs/stdiostream.cpp 2009-01-02 17:58:54 UTC (rev 35674)
+++ scummvm/trunk/backends/fs/stdiostream.cpp 2009-01-02 18:00:12 UTC (rev 35675)
@@ -155,6 +155,11 @@
}
#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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list