mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 13:13:58 +00:00
Add priority parameter to the SearchMan API
svn-id: r34679
This commit is contained in:
parent
1b90127ad9
commit
00ca130f19
@ -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() {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user