diff options
Diffstat (limited to 'common/fs.cpp')
-rw-r--r-- | common/fs.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/common/fs.cpp b/common/fs.cpp index 86cdfe41d6..d395686be3 100644 --- a/common/fs.cpp +++ b/common/fs.cpp @@ -25,9 +25,9 @@ #include "common/stdafx.h" #include "common/util.h" #include "backends/fs/abstract-fs.h" -#include "backends/fs/fs-factory-maker.cpp" +#include "backends/fs/abstract-fs-factory.h" -/* +/** * Simple DOS-style pattern matching function (understands * and ? like used in DOS). * Taken from exult/files/listfiles.cc */ @@ -82,7 +82,7 @@ FilesystemNode::FilesystemNode(const FilesystemNode &node) { } FilesystemNode::FilesystemNode(const Common::String &p) { - AbstractFilesystemFactory *factory = makeFSFactory(); + AbstractFilesystemFactory *factory = AbstractFilesystemFactory::makeFSFactory(); if (p.empty() || p == ".") _realNode = factory->makeCurrentDirectoryFileNode(); @@ -234,6 +234,9 @@ bool FilesystemNode::lookupFile(FSList &results, FilesystemNode &dir, Common::St return ((matches > 0) ? true : false); } +// HACK HACK HACK +extern const char *lastPathComponent(const Common::String &str); + int FilesystemNode::lookupFileRec(FSList &results, FilesystemNode &dir, Common::String &filename, bool hidden, bool exhaustive) const { FSList entries; |