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

Method getInstanceByManagedName

launcher/InstanceList.cpp:586–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584}
585
586InstancePtr InstanceList::getInstanceByManagedName(const QString& managed_name) const
587{
588 if (managed_name.isEmpty())
589 return {};
590
591 for (auto instance : m_instances) {
592 if (instance->getManagedPackName() == managed_name)
593 return instance;
594 }
595
596 return {};
597}
598
599QModelIndex InstanceList::getInstanceIndexById(const QString& id) const
600{

Callers 2

updateInstanceMethod · 0.80
updateInstanceMethod · 0.80

Calls 2

getManagedPackNameMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected