mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 10:17:14 +00:00
Fixed a couple compilation issues in the windows build.
svn-id: r27983
This commit is contained in:
parent
779f702b69
commit
8a36379d55
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user