[Scummvm-devel] ReadStream::ioFailed/EOF - StdioStream::read

Willem Jan Palenstijn wjp at usecode.org
Sun Feb 22 18:26:50 CET 2009


On Sun, Feb 22, 2009 at 05:58:00PM +0100, sunmax at libero.it wrote:
>  a) EOF means "POS > SIZE" -> snafu
> 
>     (can't pass ConfigManager::loadFromStream)

Currently the ::read in fileio.cpp never sets POS above SIZE, so simply
checking POS > SIZE will not be a correct EOF check. Did you update
that? The way most other backends work is by keeping an eof flag that is
set when reading past the end of the file. (And reset at the right
times.)

-Willem Jan




More information about the Scummvm-devel mailing list