Logo Search packages:      
Sourcecode: scummvm version File versions

FilesystemNode AbstractFilesystemNode::wrap ( AbstractFilesystemNode node  )  [static, protected]

This method is a rather ugly hack which is used internally by the actual node implementions to wrap up raw nodes inside FilesystemNode objects. We probably want to get rid of this eventually and replace it with a cleaner / more elegant solution, but for now it works.

This takes over ownership of node. Do not delete it yourself, else you'll get ugly crashes. You've been warned!

Definition at line 39 of file fs.cpp.

      FilesystemNode wrapper;
      wrapper._realNode = node;
      return wrapper;

Generated by  Doxygen 1.6.0   Back to index