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

Method getInstanceGroup

launcher/InstanceList.cpp:217–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217GroupId InstanceList::getInstanceGroup(const InstanceId& id) const
218{
219 auto inst = getInstanceById(id);
220 if (!inst) {
221 return GroupId();
222 }
223 auto iter = m_instanceGroupIndex.find(inst->id());
224 if (iter != m_instanceGroupIndex.end()) {
225 return *iter;
226 }
227 return GroupId();
228}
229
230void InstanceList::setInstanceGroup(const InstanceId& id, const GroupId& name)
231{

Callers 2

CopyInstanceDialogMethod · 0.80

Calls 3

endMethod · 0.80
findMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected