diff options
author | David Corrales | 2007-07-09 01:16:13 +0000 |
---|---|---|
committer | David Corrales | 2007-07-09 01:16:13 +0000 |
commit | 8a36379d55afbfd5e322c1e216a11447a4de8a51 (patch) | |
tree | 96450950d0c7423b06dc0fd70124f9cc08b507d0 /backends | |
parent | 779f702b695977b5d8c0e03b8a24bd9c107b7cfe (diff) | |
download | scummvm-rg350-8a36379d55afbfd5e322c1e216a11447a4de8a51.tar.gz scummvm-rg350-8a36379d55afbfd5e322c1e216a11447a4de8a51.tar.bz2 scummvm-rg350-8a36379d55afbfd5e322c1e216a11447a4de8a51.zip |
Fixed a couple compilation issues in the windows build.
svn-id: r27983
Diffstat (limited to 'backends')
-rw-r--r-- | backends/fs/windows/windows-fs-factory.cpp | 2 | ||||
-rw-r--r-- | backends/fs/windows/windows-fs.cpp | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/backends/fs/windows/windows-fs-factory.cpp b/backends/fs/windows/windows-fs-factory.cpp index 76b62e5deb..3d7a3cc672 100644 --- a/backends/fs/windows/windows-fs-factory.cpp +++ b/backends/fs/windows/windows-fs-factory.cpp @@ -8,7 +8,7 @@ AbstractFilesystemNode *WindowsFilesystemFactory::makeRootFileNode() const { } AbstractFilesystemNode *WindowsFilesystemFactory::makeCurrentDirectoryFileNode() const { - return new WindowsFilesystemNode(NULL, true); + return new WindowsFilesystemNode("", true); } AbstractFilesystemNode *WindowsFilesystemFactory::makeFileNodePath(const String &path) const { diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp index 5a9e1c65b6..995264f110 100644 --- a/backends/fs/windows/windows-fs.cpp +++ b/backends/fs/windows/windows-fs.cpp @@ -82,7 +82,7 @@ public: virtual bool isWritable() const { return _access(_path.c_str(), W_OK) == 0; } virtual AbstractFilesystemNode *getChild(const String &n) const; - virtual bool getChildren(AbstractFSList &list, ListMode mode) const; + virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const; virtual AbstractFilesystemNode *getParent() const; private: @@ -246,9 +246,11 @@ AbstractFilesystemNode *WindowsFilesystemNode::getChild(const String &n) const { return new WindowsFilesystemNode(newPath, false); } -bool WindowsFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode) const { +bool WindowsFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, bool hidden) const { assert(_isDirectory); + //TODO: honor the hidden flag + if (_isPseudoRoot) { #ifndef _WIN32_WCE // Drives enumeration |