MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / getInstanceGroup

Method getInstanceGroup

launcher/InstanceList.cpp:225–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

MainWindowMethod · 0.80
updatePackMethod · 0.80
CopyInstanceDialogMethod · 0.80

Calls 2

findMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected