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

Method isActive

src/instancemanager.cpp:98–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98bool Instance::isActive() const
99{
100 auto& m = InstanceManager::singleton();
101
102 if (auto i = m.currentInstance()) {
103 if (m_portable) {
104 return i->isPortable();
105 } else {
106 return (i->displayName() == displayName());
107 }
108 }
109
110 return false;
111}
112
113bool Instance::readFromIni()
114{

Callers

nothing calls this directly

Calls 3

isPortableMethod · 0.80
currentInstanceMethod · 0.45
displayNameMethod · 0.45

Tested by

no test coverage detected