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

Method getIconIndex

launcher/icons/IconList.cpp:460–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460int IconList::getIconIndex(const QString &key) const
461{
462 auto iter = name_index.find(key == "default" ? "grass" : key);
463 if (iter != name_index.end())
464 return *iter;
465
466 return -1;
467}
468
469QString IconList::getDirectory() const
470{

Callers 1

execWithSelectionMethod · 0.80

Calls 2

endMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected