| 744 | }; |
| 745 | |
| 746 | String 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 | |
| 759 | bool LoadFromXML(LocationType locationType, std::list<Info>& internalPlugins, String& errmsg) |
| 760 | { |
no test coverage detected