diff options
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); } |