MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / lockESPIndex

Method lockESPIndex

src/pluginlist.cpp:761–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

759}
760
761void PluginList::lockESPIndex(int index, bool lock)
762{
763 if (lock) {
764 if (!m_ESPs.at(index).forceLoaded)
765 m_LockedOrder[getName(index)] = m_ESPs.at(index).loadOrder;
766 else
767 return;
768 } else {
769 auto iter = m_LockedOrder.find(getName(index));
770 if (iter != m_LockedOrder.end()) {
771 m_LockedOrder.erase(iter);
772 }
773 }
774 emit writePluginsList();
775}
776
777void PluginList::syncLoadOrder()
778{

Callers 1

setESPLockMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected