[Scummvm-devel] eof & err
sunmax at libero.it
sunmax at libero.it
Sun Jul 12 18:42:50 CEST 2009
Hi Johannes,
thanks for your feedback.
[ In TIMInterpreter::load ]
if (stream->err())
error("Read error while parsing file '%s", filename);
Yes. That's the spot.
Here is the diagnosis:
- on PS2 _eof (returned by ->err()) is set when you seek or
read past the end of a file, but even when you just read
all the file
if (_filePos >= _fileSize) {
_eof = true;
...
- iff.parse read the file to the end, so _eof fill be true
- stream->err() is going to return true
What am I supposed to do?
Thanks!
-max
More information about the Scummvm-devel
mailing list