Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

AbstractFSNode * RoninCDFileNode::getParent (  )  const [virtual]

The parent node of this directory. The parent of the root is the root itself.

Implements AbstractFSNode.

Definition at line 142 of file dc-fs.cpp.

References Common::String::c_str(), and AbstractFSNode::lastPathComponent().

      if (_path == "/")
            return 0;

      const char *start = _path.c_str();
      const char *end = lastPathComponent(_path, '/');

      return new RoninCDDirectoryNode(Common::String(start, end - start));

Generated by  Doxygen 1.6.0   Back to index