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

Method getInstanceById

launcher/InstanceList.cpp:526–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526InstancePtr InstanceList::getInstanceById(QString instId) const
527{
528 if (instId.isEmpty())
529 return InstancePtr();
530 for (auto& inst : m_instances) {
531 if (inst->id() == instId) {
532 return inst;
533 }
534 }
535 return InstancePtr();
536}
537
538InstancePtr InstanceList::getInstanceByManagedName(const QString& managed_name) const
539{

Callers 6

messageReceivedMethod · 0.80
updateInstanceMethod · 0.80
updateInstanceMethod · 0.80
instanceActivatedMethod · 0.80
instanceChangedMethod · 0.80

Calls 2

isEmptyMethod · 0.80
idMethod · 0.45

Tested by

no test coverage detected