Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

void Common::SearchSet::setPriority ( const String name,
int  priority 
)

Change the order of searches.

Definition at line 149 of file archive.cpp.

References Common::String::c_str(), Common::List< t_T >::end(), and Common::List< t_T >::erase().

                                                            {
      ArchiveNodeList::iterator it = find(name);
      if (it == _list.end()) {
            warning("SearchSet::setPriority: archive '%s' is not present", name.c_str());
            return;
      }

      if (priority == it->_priority)
            return;

      Node node(*it);
      _list.erase(it);
      node._priority = priority;
      insert(node);
}


Generated by  Doxygen 1.6.0   Back to index