aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/fs.cpp2
-rw-r--r--common/fs.h2
-rw-r--r--engines/advancedDetector.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/common/fs.cpp b/common/fs.cpp
index d93270ff0d..54fdf892f2 100644
--- a/common/fs.cpp
+++ b/common/fs.cpp
@@ -257,7 +257,7 @@ void FSDirectory::cacheDirectoryRecursive(FSNode node, int depth, const String&
return;
FSList list;
- node.getChildren(list, FSNode::kListAll, true);
+ node.getChildren(list, FSNode::kListAll);
FSList::iterator it = list.begin();
for ( ; it != list.end(); ++it) {
diff --git a/common/fs.h b/common/fs.h
index ed287cc17a..6ff5c6eb8d 100644
--- a/common/fs.h
+++ b/common/fs.h
@@ -135,7 +135,7 @@ public:
*
* @return true if successful, false otherwise (e.g. when the directory does not exist).
*/
- bool getChildren(FSList &fslist, ListMode mode = kListDirectoriesOnly, bool hidden = false) const;
+ bool getChildren(FSList &fslist, ListMode mode = kListDirectoriesOnly, bool hidden = true) const;
/**
* Return a human readable string for this node, usable for display (e.g.
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp
index 26b06b6417..10ddb0d073 100644
--- a/engines/advancedDetector.cpp
+++ b/engines/advancedDetector.cpp
@@ -244,7 +244,7 @@ Common::Error AdvancedMetaEngine::createInstance(OSystem *syst, Engine **engine)
}
Common::FSNode dir(path);
Common::FSList files;
- if (!dir.isDirectory() || !dir.getChildren(files, Common::FSNode::kListAll, true)) {
+ if (!dir.isDirectory() || !dir.getChildren(files, Common::FSNode::kListAll)) {
warning("Game data path does not exist or is not a directory (%s)", path.c_str());
return Common::kNoGameDataFoundError;
}