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.
This commit is contained in:
parent
d88827b13f
commit
2ffdd0d3b7
2 changed files with 2 additions and 2 deletions
|
@ -256,7 +256,7 @@ void FSDirectory::cacheDirectoryRecursive(FSNode node, int depth, const String&
|
||||||
return;
|
return;
|
||||||
|
|
||||||
FSList list;
|
FSList list;
|
||||||
node.getChildren(list, FSNode::kListAll, false);
|
node.getChildren(list, FSNode::kListAll, true);
|
||||||
|
|
||||||
FSList::iterator it = list.begin();
|
FSList::iterator it = list.begin();
|
||||||
for ( ; it != list.end(); ++it) {
|
for ( ; it != list.end(); ++it) {
|
||||||
|
|
|
@ -207,7 +207,7 @@ Common::Error AdvancedMetaEngine::createInstance(OSystem *syst, Engine **engine)
|
||||||
}
|
}
|
||||||
Common::FSNode dir(path);
|
Common::FSNode dir(path);
|
||||||
Common::FSList files;
|
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());
|
warning("Game data path does not exist or is not a directory (%s)", path.c_str());
|
||||||
return Common::kNoGameDataFoundError;
|
return Common::kNoGameDataFoundError;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue