Logo Search packages:      
Sourcecode: scummvm version File versions

bool Common::FSDirectory::hasFile ( const String name  )  [virtual]

Checks for existence in the cache. A full match of relative path and filename is needed for success.

Implements Common::Archive.

Definition at line 114 of file archive.cpp.

References Common::String::empty(), Common::FSNode::exists(), and Common::FSNode::isDirectory().

                                            {
      if (name.empty() || !_node.isDirectory())
            return false;

      FSNode node = lookupCache(_fileCache, name);
      return node.exists();
}


Generated by  Doxygen 1.6.0   Back to index