[Scummvm-cvs-logs] scummvm master -> 2ffdd0d3b7d06d072c11db06cb4017d9948b205b
fuzzie
fuzzie at fuzzie.org
Sat Oct 8 14:46:09 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
2ffdd0d3b7 COMMON: Include hidden files in FSDirectory cache and detection.
Commit: 2ffdd0d3b7d06d072c11db06cb4017d9948b205b
https://github.com/scummvm/scummvm/commit/2ffdd0d3b7d06d072c11db06cb4017d9948b205b
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2011-10-08T05:36:34-07:00
Commit Message:
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.
Changed paths:
common/fs.cpp
engines/advancedDetector.cpp
diff --git a/common/fs.cpp b/common/fs.cpp
index 8aa1115..4b56cc4 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 d864fe8..f95b5e8 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;
}
More information about the Scummvm-git-logs
mailing list