[Scummvm-devel] eof & err

sunmax at libero.it sunmax at libero.it
Sun Jul 12 21:54:35 CEST 2009


Thanks Willem!

> "
> If size or nitems is 0, fread() shall return 0 and the contents
> of the array and the state of the stream remain unchanged.
> "

Ah ah!

If this fixes it (I am sure it will), should we still modify
ps2_ferror to return "false" even when eof is true [*]?

[*] note: in the actual PS2 implementation we are only tracing
    _eof as a file condition, so we either return that or
    default to false. Whatever you think is smarter ;-)

Ciao,
 -max





More information about the Scummvm-devel mailing list