Ticket #9016: posix-fs.diff

File posix-fs.diff, 1.6 KB (added by SF/lvzuufx, 15 years ago)

Patch for posix-fs.cpp

  • backends/fs/posix/posix-fs.cpp

     
    9292        setFlags();
    9393}
    9494
    95 AbstractFilesystemNode *POSIXFilesystemNode::getChild(const Common::String &n) const {
     95AbstractFSNode *POSIXFilesystemNode::getChild(const Common::String &n) const {
    9696        assert(!_path.empty());
    9797        assert(_isDirectory);
    9898       
     
    197197                        continue;
    198198
    199199                // Honor the chosen mode
    200                 if ((mode == Common::FilesystemNode::kListFilesOnly && entry._isDirectory) ||
    201                         (mode == Common::FilesystemNode::kListDirectoriesOnly && !entry._isDirectory))
     200                if ((mode == Common::FSNode::kListFilesOnly && entry._isDirectory) ||
     201                        (mode == Common::FSNode::kListDirectoriesOnly && !entry._isDirectory))
    202202                        continue;
    203203
    204204                myList.push_back(new POSIXFilesystemNode(entry));
     
    208208        return true;
    209209}
    210210
    211 AbstractFilesystemNode *POSIXFilesystemNode::getParent() const {
     211AbstractFSNode *POSIXFilesystemNode::getParent() const {
    212212        if (_path == "/")
    213213                return 0;       // The filesystem root has no parent
    214214
     
    237237        return makeNode(Common::String(start, end));
    238238}
    239239
    240 Common::SeekableReadStream *POSIXFilesystemNode::openForReading() {
     240Common::SeekableReadStream *POSIXFilesystemNode::createReadStream() {
    241241        return StdioStream::makeFromPath(getPath().c_str(), false);
    242242}
    243243
    244 Common::WriteStream *POSIXFilesystemNode::openForWriting() {
     244Common::WriteStream *POSIXFilesystemNode::createWriteStream() {
    245245        return StdioStream::makeFromPath(getPath().c_str(), true);
    246246}
    247247