diff options
author | Max Horn | 2008-12-27 17:16:48 +0000 |
---|---|---|
committer | Max Horn | 2008-12-27 17:16:48 +0000 |
commit | 2fec0a30882c057a3925c739fca0f1125daea91d (patch) | |
tree | 9ce582cb5378deeeedb48907d91c95022679c045 /common/archive.h | |
parent | fb5f64b969328e7618b080d59378dfd6dc1bacdc (diff) | |
download | scummvm-rg350-2fec0a30882c057a3925c739fca0f1125daea91d.tar.gz scummvm-rg350-2fec0a30882c057a3925c739fca0f1125daea91d.tar.bz2 scummvm-rg350-2fec0a30882c057a3925c739fca0f1125daea91d.zip |
Moved addDirectory from SearchManager to SearchSet; changed several places from using '++it' instead of 'it++' to iterate over a list (this is more efficient)
svn-id: r35576
Diffstat (limited to 'common/archive.h')
-rw-r--r-- | common/archive.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/common/archive.h b/common/archive.h index 5e331052b2..d2f2adbbc0 100644 --- a/common/archive.h +++ b/common/archive.h @@ -265,6 +265,16 @@ public: void add(const String& name, Archive *arch, int priority = 0, bool autoFree = true); /** + * Create and add a FSDirectory by name + */ + void addDirectory(const String &name, const String &directory, int priority = 0, int depth = 1); + + /** + * Create and add a FSDirectory by FSNode + */ + void addDirectory(const String &name, const FSNode &directory, int priority = 0, int depth = 1); + + /** * Remove an archive from the searchable set. */ void remove(const String& name); @@ -302,16 +312,6 @@ class SearchManager : public Singleton<SearchManager>, public SearchSet { public: /** - * Create and add a FSDirectory by name - */ - void addDirectory(const String &name, const String &directory, int priority = 0, int depth = 1); - - /** - * Create and add a FSDirectory by FSNode - */ - void addDirectory(const String &name, const FSNode &directory, int priority = 0, int depth = 1); - - /** * Resets the search manager to the default list of search paths (system * specific dirs + current dir). */ |