MCPcopy Create free account
hub / github.com/WinMerge/winmerge / GetPluginXMLPath

Function GetPluginXMLPath

Src/InternalPlugins.cpp:746–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744};
745
746String GetPluginXMLPath(LocationType locationType)
747{
748 switch (locationType)
749 {
750 case LocationType::AppDataPath:
751 return paths::ConcatPath(env::GetAppDataPath(), _T("WinMerge\\MergePlugins\\Plugins.xml"));
752 case LocationType::DocumentsPath:
753 return paths::ConcatPath(env::GetMyDocuments(), _T("WinMerge\\MergePlugins\\Plugins.xml"));
754 default:
755 return paths::ConcatPath(env::GetProgPath(), _T("MergePlugins\\Plugins.xml"));
756 }
757}
758
759bool LoadFromXML(LocationType locationType, std::list<Info>& internalPlugins, String& errmsg)
760{

Callers 3

LoadFromXMLFunction · 0.85
SaveToXMLFunction · 0.85
LoadMethod · 0.85

Calls 4

ConcatPathFunction · 0.85
GetAppDataPathFunction · 0.85
GetMyDocumentsFunction · 0.85
GetProgPathFunction · 0.85

Tested by

no test coverage detected