aboutsummaryrefslogtreecommitdiff
path: root/engines/advancedDetector.cpp
diff options
context:
space:
mode:
authorAlyssa Milburn2011-10-08 14:29:48 +0200
committerAlyssa Milburn2011-10-08 14:36:34 +0200
commit2ffdd0d3b7d06d072c11db06cb4017d9948b205b (patch)
tree2f7eda0af38aa6bf4f8ca93ee507f15b05d7a907 /engines/advancedDetector.cpp
parentd88827b13facfd089707f3a9edd34c8ce112ff20 (diff)
downloadscummvm-rg350-2ffdd0d3b7d06d072c11db06cb4017d9948b205b.tar.gz
scummvm-rg350-2ffdd0d3b7d06d072c11db06cb4017d9948b205b.tar.bz2
scummvm-rg350-2ffdd0d3b7d06d072c11db06cb4017d9948b205b.zip
COMMON: Include hidden files in FSDirectory cache and detection.
The cache issue has been discussed before, it breaks accessing files beginning with a dot on POSIX. The change to the advancedDetector to see hidden files was suggested by AdamRi on IRC.
Diffstat (limited to 'engines/advancedDetector.cpp')
-rw-r--r--engines/advancedDetector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp
index d864fe8b52..f95b5e8ecc 100644
--- a/engines/advancedDetector.cpp
+++ b/engines/advancedDetector.cpp
@@ -207,7 +207,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)) {
+ if (!dir.isDirectory() || !dir.getChildren(files, Common::FSNode::kListAll, true)) {
warning("Game data path does not exist or is not a directory (%s)", path.c_str());
return Common::kNoGameDataFoundError;
}