MCPcopy Create free account
hub / github.com/clechasseur/pathcopycopy / GetKnownPlugins

Method GetKnownPlugins

PathCopyCopy/src/PathCopyCopySettings.cpp:685–699  ·  view source on GitHub ↗

Returns the list of known plugins. This is updated by the settings app and is used to track new plugins when displaying the menu. @param p_rvPluginIds Upon return, will contain a list of plugin IDs. If the method returns false, this list is untouched. @return true if there was a list of known plugins in the settings and it was copied to p_rvPluginIds.

Source from the content-addressed store, hash-verified

683 // was copied to p_rvPluginIds.
684 //
685 bool Settings::GetKnownPlugins(GUIDV& p_rvPluginIds) const
686 {
687 // Perform late-revising.
688 Revise();
689
690 std::wstring pluginsAsString;
691 const bool hasValues = PluginUtils::ReadRegistryStringValue(m_UserKey, SETTING_KNOWN_PLUGINS, pluginsAsString) == ERROR_SUCCESS;
692 if (hasValues) {
693 p_rvPluginIds.clear();
694 if (!pluginsAsString.empty()) {
695 p_rvPluginIds = PluginUtils::StringToPluginIds(pluginsAsString, PLUGINS_SEPARATOR);
696 }
697 }
698 return hasValues;
699 }
700
701 //
702 // Checks if we need to perform a software update check according to the last time we did.

Callers 2

QueryContextMenuMethod · 0.80
InitializeMethod · 0.80

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected