diff options
author | Max Horn | 2008-10-02 16:58:59 +0000 |
---|---|---|
committer | Max Horn | 2008-10-02 16:58:59 +0000 |
commit | c7fde102e325b423b1b153a78f7544697c052b72 (patch) | |
tree | 051aa4e66c66a20fa52fbb771328df5ea8d4790a /backends/fs/wii | |
parent | 31be8a6b3f22880378db870600b29906135c8ef5 (diff) | |
download | scummvm-rg350-c7fde102e325b423b1b153a78f7544697c052b72.tar.gz scummvm-rg350-c7fde102e325b423b1b153a78f7544697c052b72.tar.bz2 scummvm-rg350-c7fde102e325b423b1b153a78f7544697c052b72.zip |
Renamed FilesystemNode -> FSNode
svn-id: r34716
Diffstat (limited to 'backends/fs/wii')
-rw-r--r-- | backends/fs/wii/wii-fs-factory.cpp | 6 | ||||
-rw-r--r-- | backends/fs/wii/wii-fs-factory.h | 6 | ||||
-rw-r--r-- | backends/fs/wii/wii-fs.cpp | 16 |
3 files changed, 14 insertions, 14 deletions
diff --git a/backends/fs/wii/wii-fs-factory.cpp b/backends/fs/wii/wii-fs-factory.cpp index 69086a95f1..0112ffa150 100644 --- a/backends/fs/wii/wii-fs-factory.cpp +++ b/backends/fs/wii/wii-fs-factory.cpp @@ -29,11 +29,11 @@ DECLARE_SINGLETON(WiiFilesystemFactory); -AbstractFilesystemNode *WiiFilesystemFactory::makeRootFileNode() const { +AbstractFSNode *WiiFilesystemFactory::makeRootFileNode() const { return new WiiFilesystemNode(); } -AbstractFilesystemNode *WiiFilesystemFactory::makeCurrentDirectoryFileNode() const { +AbstractFSNode *WiiFilesystemFactory::makeCurrentDirectoryFileNode() const { char buf[MAXPATHLEN]; if (getcwd(buf, MAXPATHLEN)) @@ -42,7 +42,7 @@ AbstractFilesystemNode *WiiFilesystemFactory::makeCurrentDirectoryFileNode() con return new WiiFilesystemNode(); } -AbstractFilesystemNode *WiiFilesystemFactory::makeFileNodePath(const Common::String &path) const { +AbstractFSNode *WiiFilesystemFactory::makeFileNodePath(const Common::String &path) const { return new WiiFilesystemNode(path, true); } #endif diff --git a/backends/fs/wii/wii-fs-factory.h b/backends/fs/wii/wii-fs-factory.h index 36867a392c..be20244a0e 100644 --- a/backends/fs/wii/wii-fs-factory.h +++ b/backends/fs/wii/wii-fs-factory.h @@ -33,9 +33,9 @@ */ class WiiFilesystemFactory : public FilesystemFactory, public Common::Singleton<WiiFilesystemFactory> { public: - virtual AbstractFilesystemNode *makeRootFileNode() const; - virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const; - virtual AbstractFilesystemNode *makeFileNodePath(const Common::String &path) const; + virtual AbstractFSNode *makeRootFileNode() const; + virtual AbstractFSNode *makeCurrentDirectoryFileNode() const; + virtual AbstractFSNode *makeFileNodePath(const Common::String &path) const; protected: WiiFilesystemFactory() {}; diff --git a/backends/fs/wii/wii-fs.cpp b/backends/fs/wii/wii-fs.cpp index a620df5471..714555b02d 100644 --- a/backends/fs/wii/wii-fs.cpp +++ b/backends/fs/wii/wii-fs.cpp @@ -34,9 +34,9 @@ /** * Implementation of the ScummVM file system API based on Wii. * - * Parts of this class are documented in the base interface class, AbstractFilesystemNode. + * Parts of this class are documented in the base interface class, AbstractFSNode. */ -class WiiFilesystemNode : public AbstractFilesystemNode { +class WiiFilesystemNode : public AbstractFSNode { protected: Common::String _displayName; Common::String _path; @@ -64,9 +64,9 @@ public: virtual bool isReadable() const { return _isReadable; } virtual bool isWritable() const { return _isWritable; } - virtual AbstractFilesystemNode *getChild(const Common::String &n) const; + virtual AbstractFSNode *getChild(const Common::String &n) const; virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const; - virtual AbstractFilesystemNode *getParent() const; + virtual AbstractFSNode *getParent() const; virtual Common::SeekableReadStream *openForReading(); virtual Common::WriteStream *openForWriting(); @@ -114,7 +114,7 @@ bool WiiFilesystemNode::exists() const { return stat(_path.c_str (), &st) == 0; } -AbstractFilesystemNode *WiiFilesystemNode::getChild(const Common::String &n) const { +AbstractFSNode *WiiFilesystemNode::getChild(const Common::String &n) const { assert(_isDirectory); Common::String newPath(_path); @@ -147,8 +147,8 @@ bool WiiFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, bool bool isDir = S_ISDIR(st.st_mode); - if ((mode == Common::FilesystemNode::kListFilesOnly && isDir) || - (mode == Common::FilesystemNode::kListDirectoriesOnly && !isDir)) + if ((mode == Common::FSNode::kListFilesOnly && isDir) || + (mode == Common::FSNode::kListDirectoriesOnly && !isDir)) continue; if (isDir) @@ -162,7 +162,7 @@ bool WiiFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, bool return true; } -AbstractFilesystemNode *WiiFilesystemNode::getParent() const { +AbstractFSNode *WiiFilesystemNode::getParent() const { if (_path == "/") return 0; |