diff options
author | Max Horn | 2008-09-29 10:30:31 +0000 |
---|---|---|
committer | Max Horn | 2008-09-29 10:30:31 +0000 |
commit | 00ca130f19dad1e2c3821d370dfe6893a2a3cd7e (patch) | |
tree | 4813b5cd6d0bdd45f6f3c33a419e48accb92def6 /common | |
parent | 1b90127ad9ba1d3a8d69e407df4695ca25180e7b (diff) | |
download | scummvm-rg350-00ca130f19dad1e2c3821d370dfe6893a2a3cd7e.tar.gz scummvm-rg350-00ca130f19dad1e2c3821d370dfe6893a2a3cd7e.tar.bz2 scummvm-rg350-00ca130f19dad1e2c3821d370dfe6893a2a3cd7e.zip |
Add priority parameter to the SearchMan API
svn-id: r34679
Diffstat (limited to 'common')
-rw-r--r-- | common/archive.cpp | 12 | ||||
-rw-r--r-- | common/archive.h | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/common/archive.cpp b/common/archive.cpp index ee27b216d1..49e43a5973 100644 --- a/common/archive.cpp +++ b/common/archive.cpp @@ -333,16 +333,16 @@ SearchManager::SearchManager() { clear(); // Force a reset } -void SearchManager::addArchive(const String &name, ArchivePtr archive) { - add(name, archive); +void SearchManager::addArchive(const String &name, ArchivePtr archive, int priority) { + add(name, archive, priority); } -void SearchManager::addDirectory(const String &name, const String &directory) { - addDirectoryRecursive(name, directory, 1); +void SearchManager::addDirectory(const String &name, const String &directory, int priority) { + addDirectoryRecursive(name, directory, 1, priority); } -void SearchManager::addDirectoryRecursive(const String &name, const String &directory, int depth) { - add(name, ArchivePtr(new FSDirectory(directory, depth))); +void SearchManager::addDirectoryRecursive(const String &name, const String &directory, int depth, int priority) { + add(name, ArchivePtr(new FSDirectory(directory, depth)), priority); } void SearchManager::clear() { diff --git a/common/archive.h b/common/archive.h index 0b94858826..246d9da8cf 100644 --- a/common/archive.h +++ b/common/archive.h @@ -211,17 +211,17 @@ public: * Add an existing Archive. This is meant to support searching in system-specific * archives, namely the MACOSX/IPHONE bundles. */ - void addArchive(const String &name, ArchivePtr archive); + void addArchive(const String &name, ArchivePtr archive, int priority = 0); /** * Create and add a FSDirectory by name */ - void addDirectory(const String &name, const String &directory); + void addDirectory(const String &name, const String &directory, int priority = 0); /** * Create and add a FSDirectory and its subdirectories by name */ - void addDirectoryRecursive(const String &name, const String &directory, int depth = 4); + void addDirectoryRecursive(const String &name, const String &directory, int depth = 4, int priority = 0); /** * TODO |