[Scummvm-devel] eof & err

sunmax at libero.it sunmax at libero.it
Sun Jul 12 21:50:42 CEST 2009


Thanks Johannes!

> Just checked our ps2_ferror implementation, which calls 
> Ps2File::getErr. Seems like Ps2File::getErr returns true on eof,

So does the DS:

int std_ferror(FILE* handle) {
    //FIXME: not implemented?
//  consolePrintf("ferror ");

    return readPastEndOfFile;
}

Since _eof is the only condition we are tracing in the current
PS2 FS implementation I thought that was the right thing to do.

I will then just always return false for now (it's already so
in SVN, but I will reword it: it's no longer a kyra hack ;-)

Thank you very much for the support guys!
 -max





More information about the Scummvm-devel mailing list