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

Method getComponent

launcher/minecraft/PackProfile.cpp:488–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488ComponentPtr PackProfile::getComponent(const QString& id)
489{
490 auto iter = d->componentIndex.find(id);
491 if (iter == d->componentIndex.end()) {
492 return nullptr;
493 }
494 return (*iter);
495}
496
497ComponentPtr PackProfile::getComponent(size_t index)
498{

Callers 15

generateIndexMethod · 0.80
generateIndexMethod · 0.80
CoreModFolderPageMethod · 0.80
shouldDisplayMethod · 0.80
VersionPageMethod · 0.80
packageCurrentMethod · 0.80
updateButtonsMethod · 0.80
currentMethod · 0.80

Calls 2

findMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected