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

Method Save

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

Source from the content-addressed store, hash-verified

861}
862
863void PluginManager::Save()
864{
865 // Create/Open the registry
866 auto pRegistry = sFactory(FileNames::PluginRegistry());
867 auto &registry = *pRegistry;
868
869 // Clear pluginregistry.cfg (not audacity.cfg)
870 registry.Clear();
871
872 // Save the individual groups
873 SaveGroup(&registry, PluginTypeEffect);
874 SaveGroup(&registry, PluginTypeExporter);
875 SaveGroup(&registry, PluginTypeAudacityCommand);
876 SaveGroup(&registry, PluginTypeImporter);
877 SaveGroup(&registry, PluginTypeStub);
878
879 // Not used by 2.1.1 or greater, but must save to allow users to switch between 2.1.0
880 // and 2.1.1+. This should be removed after a few releases past 2.1.0.
881 //SaveGroup(&registry, PluginTypeNone);
882
883 // And now the providers
884 SaveGroup(&registry, PluginTypeModule);
885
886 // Write the version string
887 registry.Write(REGVERKEY, REGVERCUR);
888
889 // Just to be safe
890 registry.Flush();
891
892 mRegver = REGVERCUR;
893}
894
895void PluginManager::NotifyPluginsChanged()
896{

Callers 1

DropFileMethod · 0.95

Calls 3

ClearMethod · 0.45
WriteMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected