MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / getInstIndex

Method getInstIndex

launcher/InstanceList.cpp:556–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556int InstanceList::getInstIndex(BaseInstance* inst) const
557{
558 int count = m_instances.count();
559 for (int i = 0; i < count; i++) {
560 if (inst == m_instances[i].get()) {
561 return i;
562 }
563 }
564 return -1;
565}
566
567void InstanceList::propertiesChanged(BaseInstance* inst)
568{

Callers

nothing calls this directly

Calls 2

countMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected