diff options
author | Max Horn | 2008-09-05 11:59:33 +0000 |
---|---|---|
committer | Max Horn | 2008-09-05 11:59:33 +0000 |
commit | 5308f12c759340577000991e5466e9dd8ae222c4 (patch) | |
tree | b2369e35c9b5a41bbc8cd43d9b0134a678dea13d /common | |
parent | d98161fc05a33465f20b19a844dd17058984e12d (diff) | |
download | scummvm-rg350-5308f12c759340577000991e5466e9dd8ae222c4.tar.gz scummvm-rg350-5308f12c759340577000991e5466e9dd8ae222c4.tar.bz2 scummvm-rg350-5308f12c759340577000991e5466e9dd8ae222c4.zip |
Ported AMIGA specific file buffering 'hack' from class File to StdioStream
svn-id: r34345
Diffstat (limited to 'common')
-rw-r--r-- | common/file.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/common/file.cpp b/common/file.cpp index 5c0668e06f..090606d523 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -200,9 +200,11 @@ static FILE *fopenNoCase(const String &filename, const String &directory, const #ifdef __amigaos4__ // - // Work around for possibility that someone uses AmigaOS "newlib" build with SmartFileSystem (blocksize 512 bytes), leading - // to buffer size being only 512 bytes. "Clib2" sets the buffer size to 8KB, resulting smooth movie playback. This forces the buffer - // to be enough also when using "newlib" compile on SFS. + // Work around for possibility that someone uses AmigaOS "newlib" build + // with SmartFileSystem (blocksize 512 bytes), leading to buffer size + // being only 512 bytes. "Clib2" sets the buffer size to 8KB, resulting + // smooth movie playback. This forces the buffer to be enough also when + // using "newlib" compile on SFS. // if (file) { setvbuf(file, NULL, _IOFBF, 8192); |