| 919 | } |
| 920 | |
| 921 | std::vector<string> PluginManager::listPlugins() |
| 922 | { |
| 923 | std::vector<string> results; |
| 924 | std::vector<std::filesystem::path> files; |
| 925 | Filesystem::listdir(getPluginPath(), files); |
| 926 | for (auto file = files.begin(); file != files.end(); ++file) |
| 927 | { |
| 928 | string fname = file->filename().string(); |
| 929 | if (hasEnding(file->filename().string(), plugin_suffix)) |
| 930 | { |
| 931 | string shortname = fname.substr(0, fname.find(plugin_suffix)); |
| 932 | results.push_back(shortname); |
| 933 | } |
| 934 | } |
| 935 | return results; |
| 936 | } |
| 937 | |
| 938 | void PluginManager::refresh() |
| 939 | { |
nothing calls this directly
no test coverage detected