MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / get_source

Method get_source

plugin_manager/plugin_manager.cpp:34–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34Ref<PluginSource> PluginManager::get_source(const String &plugin_name) {
35 // Check if we already have a source for this plugin
36 Ref<PluginSource> default_source;
37 for (int i = 0; i < source_count; ++i) {
38 if (sources[i]->handles_plugin(plugin_name)) {
39 if (sources[i]->is_default()) {
40 default_source = sources[i];
41 continue;
42 }
43 return sources[i];
44 }
45 }
46 return default_source;
47}
48
49void PluginManager::register_source(Ref<PluginSource> source, bool at_front) {
50 if (source_count < MAX_SOURCES) {

Callers 1

_convert_svgMethod · 0.80

Calls 2

handles_pluginMethod · 0.45
is_defaultMethod · 0.45

Tested by

no test coverage detected