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

Method iconFileExists

launcher/icons/IconList.cpp:337–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337bool IconList::iconFileExists(const QString &key) const
338{
339 auto iconEntry = icon(key);
340 if(!iconEntry)
341 {
342 return false;
343 }
344 return iconEntry->has(IconType::FileBased);
345}
346
347const MMCIcon *IconList::icon(const QString &key) const
348{

Callers 1

processMultiMCMethod · 0.80

Calls 2

iconFunction · 0.50
hasMethod · 0.45

Tested by

no test coverage detected