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());

      if (priority == it->_priority)

      Node node(*it);
      node._priority = priority;

Generated by  Doxygen 1.6.0   Back to index