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

AbstractFilesystemNode * Ps2FilesystemFactory::makeFileNodePath ( const String path  )  const [virtual]

Construct a node based on a path; the path is in the same format as it would be for calls to fopen().

Furthermore getNodeForPath(oldNode.path()) should create a new node identical to oldNode. Hence, we can use the "path" value for persistent storage e.g. in the config file.

Parameters:
path The path string to create a FilesystemNode for.

Implements AbstractFilesystemFactory.

Definition at line 38 of file ps2-fs-factory.cpp.

                                                                                       {
      // return new Ps2FilesystemNode(path);

      Ps2FilesystemNode *nf = new Ps2FilesystemNode(path, true);
/*
      int fd = fio.dopen(path.c_str());
      if (fd < 0) {
            nf->_isDirectory = false;
      }
      else {
            fio.dclose(fd);
      }
*/
      return nf; // new Ps2FilesystemNode(path, true);
}


Generated by  Doxygen 1.6.0   Back to index