Ticket #9016: posix-fs.diff
File posix-fs.diff, 1.6 KB (added by , 16 years ago) |
---|
-
backends/fs/posix/posix-fs.cpp
92 92 setFlags(); 93 93 } 94 94 95 AbstractF ilesystemNode *POSIXFilesystemNode::getChild(const Common::String &n) const {95 AbstractFSNode *POSIXFilesystemNode::getChild(const Common::String &n) const { 96 96 assert(!_path.empty()); 97 97 assert(_isDirectory); 98 98 … … 197 197 continue; 198 198 199 199 // Honor the chosen mode 200 if ((mode == Common::F ilesystemNode::kListFilesOnly && entry._isDirectory) ||201 (mode == Common::F ilesystemNode::kListDirectoriesOnly && !entry._isDirectory))200 if ((mode == Common::FSNode::kListFilesOnly && entry._isDirectory) || 201 (mode == Common::FSNode::kListDirectoriesOnly && !entry._isDirectory)) 202 202 continue; 203 203 204 204 myList.push_back(new POSIXFilesystemNode(entry)); … … 208 208 return true; 209 209 } 210 210 211 AbstractF ilesystemNode *POSIXFilesystemNode::getParent() const {211 AbstractFSNode *POSIXFilesystemNode::getParent() const { 212 212 if (_path == "/") 213 213 return 0; // The filesystem root has no parent 214 214 … … 237 237 return makeNode(Common::String(start, end)); 238 238 } 239 239 240 Common::SeekableReadStream *POSIXFilesystemNode:: openForReading() {240 Common::SeekableReadStream *POSIXFilesystemNode::createReadStream() { 241 241 return StdioStream::makeFromPath(getPath().c_str(), false); 242 242 } 243 243 244 Common::WriteStream *POSIXFilesystemNode:: openForWriting() {244 Common::WriteStream *POSIXFilesystemNode::createWriteStream() { 245 245 return StdioStream::makeFromPath(getPath().c_str(), true); 246 246 } 247 247