MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / getInstanceGroup

Method getInstanceGroup

launcher/InstanceList.cpp:229–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229GroupId InstanceList::getInstanceGroup(const InstanceId& id) const
230{
231 auto inst = getInstanceById(id);
232 if (!inst) {
233 return GroupId();
234 }
235 auto iter = m_instanceGroupIndex.find(inst->id());
236 if (iter != m_instanceGroupIndex.end()) {
237 return *iter;
238 }
239 return GroupId();
240}
241
242void InstanceList::setInstanceGroup(const InstanceId& id, GroupId name)
243{

Callers 4

updateMethod · 0.80
updateFromFileMethod · 0.80
CopyInstanceDialogMethod · 0.80

Calls 2

findMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected