diff options
author | Max Horn | 2008-09-03 14:55:19 +0000 |
---|---|---|
committer | Max Horn | 2008-09-03 14:55:19 +0000 |
commit | 196ce8eb98aa49b7661933f2fad91b2294c83e75 (patch) | |
tree | d8c10055828d0c03bbef4348b81527e290d6a29e /backends/fs/posix/posix-fs.h | |
parent | 8764ccebc70a15d41e5b0507bf2265700790991a (diff) | |
download | scummvm-rg350-196ce8eb98aa49b7661933f2fad91b2294c83e75.tar.gz scummvm-rg350-196ce8eb98aa49b7661933f2fad91b2294c83e75.tar.bz2 scummvm-rg350-196ce8eb98aa49b7661933f2fad91b2294c83e75.zip |
POSIX FSNode: got rid of Double-slashes in paths for childs of the root; simplified code
svn-id: r34307
Diffstat (limited to 'backends/fs/posix/posix-fs.h')
-rw-r--r-- | backends/fs/posix/posix-fs.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/backends/fs/posix/posix-fs.h b/backends/fs/posix/posix-fs.h index 9459b38010..7d633a7fdf 100644 --- a/backends/fs/posix/posix-fs.h +++ b/backends/fs/posix/posix-fs.h @@ -43,20 +43,18 @@ protected: Common::String _path; bool _isDirectory; bool _isValid; + + virtual AbstractFilesystemNode *makeNode(const Common::String &path) const { + return new POSIXFilesystemNode(path); + } public: /** - * Creates a POSIXFilesystemNode with the root node as path. - */ - POSIXFilesystemNode(); - - /** * Creates a POSIXFilesystemNode for a given path. * - * @param path String with the path the new node should point to. - * @param verify true if the isValid and isDirectory flags should be verified during the construction. + * @param path the path the new node should point to. */ - POSIXFilesystemNode(const Common::String &path, bool verify); + POSIXFilesystemNode(const Common::String &path); virtual bool exists() const { return access(_path.c_str(), F_OK) == 0; } virtual Common::String getDisplayName() const { return _displayName; } |