MCPcopy Create free account
hub / github.com/audacity/audacity / Initialize

Method Initialize

libraries/lib-module-manager/PluginManager.cpp:383–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383void PluginManager::Initialize(ConfigFactory factory)
384{
385 sFactory = move(factory);
386
387 // Always load the registry first
388 Load();
389
390 // And force load of setting to verify it's accessible
391 GetSettings();
392
393 auto &mm = ModuleManager::Get();
394 mm.DiscoverProviders();
395 for (auto& [id, module] : mm.Providers()) {
396 RegisterPlugin(module.get());
397 // Allow the module to auto-register children
398 module->AutoRegisterPlugins(*this);
399 }
400
401 InitializePlugins();
402}
403
404void PluginManager::Terminate()
405{

Callers

nothing calls this directly

Calls 7

moveFunction · 0.85
LoadFunction · 0.85
GetSettingsFunction · 0.85
GetFunction · 0.85
DiscoverProvidersMethod · 0.80
getMethod · 0.45
AutoRegisterPluginsMethod · 0.45

Tested by

no test coverage detected