Logo Search packages:      
Sourcecode: scummvm version File versions

FSNode Common::FSNode::getParent (  )  const

Get the parent node of this node. If this node has no parent node, then it returns a duplicate of this node.

Definition at line 100 of file fs.cpp.

References FSNode().

      if (_realNode == 0)
            return *this;

      AbstractFSNode *node = _realNode->getParent();
      if (node == 0) {
            return *this;
      } else {
            return FSNode(node);

Generated by  Doxygen 1.6.0   Back to index