diff options
author | Alyssa Milburn | 2011-10-08 14:29:48 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-10-08 14:36:34 +0200 |
commit | 2ffdd0d3b7d06d072c11db06cb4017d9948b205b (patch) | |
tree | 2f7eda0af38aa6bf4f8ca93ee507f15b05d7a907 | |
parent | d88827b13facfd089707f3a9edd34c8ce112ff20 (diff) | |
download | scummvm-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.
-rw-r--r-- | common/fs.cpp | 2 | ||||
-rw-r--r-- | engines/advancedDetector.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/fs.cpp b/common/fs.cpp index 8aa1115f9d..4b56cc4594 100644 --- a/common/fs.cpp +++ b/common/fs.cpp @@ -256,7 +256,7 @@ void FSDirectory::cacheDirectoryRecursive(FSNode node, int depth, const String& return; FSList list; - node.getChildren(list, FSNode::kListAll, false); + node.getChildren(list, FSNode::kListAll, true); FSList::iterator it = list.begin(); for ( ; it != list.end(); ++it) { 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; } |