mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 13:13:58 +00:00
Added hasArchive to SearchSet.
svn-id: r34397
This commit is contained in:
parent
6bfa3e274a
commit
093431e88d
@ -225,6 +225,10 @@ void SearchSet::remove(const String& name) {
|
||||
}
|
||||
}
|
||||
|
||||
bool SearchSet::hasArchive(const String &name) const {
|
||||
return (find(name) != _list.end());
|
||||
}
|
||||
|
||||
void SearchSet::clear() {
|
||||
_list.clear();
|
||||
}
|
||||
|
@ -165,15 +165,20 @@ class SearchSet : public Archive {
|
||||
|
||||
public:
|
||||
/**
|
||||
* Add a new Archive to the searchable set.
|
||||
* Add a new archive to the searchable set.
|
||||
*/
|
||||
void add(const String& name, ArchivePtr archive, uint priority = 0);
|
||||
|
||||
/**
|
||||
* Remove an Archive from the searchable set.
|
||||
* Remove an archive from the searchable set.
|
||||
*/
|
||||
void remove(const String& name);
|
||||
|
||||
/**
|
||||
* Check if a given archive name is already present.
|
||||
*/
|
||||
bool hasArchive(const String &name) const;
|
||||
|
||||
/**
|
||||
* Empties the searchable set.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user