diff options
author | Willem Jan Palenstijn | 2009-06-01 00:01:32 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2009-06-01 00:01:32 +0000 |
commit | 6e382592702534bb530f5610f19f694d3b4e5429 (patch) | |
tree | 2ab7746b3970483790cb6ceca634427a3c6720cc /common/archive.cpp | |
parent | 9c8c1cb080a72fd143ef6db50f1ab2fd27a6d009 (diff) | |
download | scummvm-rg350-6e382592702534bb530f5610f19f694d3b4e5429.tar.gz scummvm-rg350-6e382592702534bb530f5610f19f694d3b4e5429.tar.bz2 scummvm-rg350-6e382592702534bb530f5610f19f694d3b4e5429.zip |
Add a 'flat' option to FSDirectory to allow searching recursively for files in subdirectories
svn-id: r41090
Diffstat (limited to 'common/archive.cpp')
-rw-r--r-- | common/archive.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/archive.cpp b/common/archive.cpp index a39d78dd9e..86ae5b6795 100644 --- a/common/archive.cpp +++ b/common/archive.cpp @@ -111,16 +111,16 @@ void SearchSet::add(const String &name, Archive *archive, int priority, bool aut } -void SearchSet::addDirectory(const String &name, const String &directory, int priority, int depth) { +void SearchSet::addDirectory(const String &name, const String &directory, int priority, int depth, bool flat) { FSNode dir(directory); - addDirectory(name, dir, priority, depth); + addDirectory(name, dir, priority, depth, flat); } -void SearchSet::addDirectory(const String &name, const FSNode &dir, int priority, int depth) { +void SearchSet::addDirectory(const String &name, const FSNode &dir, int priority, int depth, bool flat) { if (!dir.exists() || !dir.isDirectory()) return; - add(name, new FSDirectory(dir, depth), priority); + add(name, new FSDirectory(dir, depth, flat), priority); } |