[Scummvm-devel] Missing File::exists() on many ports, making SAGA games unplayable

Marcus Comstedt marcus at mc.pp.se
Fri Jan 18 19:23:55 CET 2008


Filippos K <philipk79 at hotmail.com> writes:

> This is mostly aimed for porters
> The way that fs-node checked for file existence (i.e File::exists() ) was done
> in a very weird and hackish way. David Corrales did very nice work on the
> beast that's the filesystem node, however a quite serious problem arose.
> As it is now, File::exists() is a stub in most of the ports that ScummVM runs
> under. That means that it ALWAYS returns true in many ports, regardless if the
> file in question exists or not.  [...]


Ok, I'm confused.

Previously, there was a method isValid(), which was implemented on
all ports (AFAIK), and which returned true if the node was "valid",
i.e. represented an existing file.  Now, this working function has
been removed and replaced by a non-working (albeit better named)
stub exists().  Is there some subtle difference between the semantics
of this "exists()" and the old isValid(), or why wasn't simply the
working implementation renamed?


  // Marcus






More information about the Scummvm-devel mailing list