MCPcopy Create free account
hub / github.com/OpenStickCommunity/GP2040-CE / GetAddon

Method GetAddon

src/addonmanager.cpp:54–60  ·  view source on GitHub ↗

HACK : change this for NeoPicoLED

Source from the content-addressed store, hash-verified

52
53// HACK : change this for NeoPicoLED
54GPAddon * AddonManager::GetAddon(std::string name) { // hack for NeoPicoLED
55 for (std::vector<AddonBlock*>::iterator it = addons.begin(); it != addons.end(); it++) {
56 if ( (*it)->ptr->name() == name )
57 return (*it)->ptr;
58 }
59 return nullptr;
60}

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected