| 77 | } |
| 78 | |
| 79 | void PluginStore::LoadPluginsFromFilesystem() { |
| 80 | const auto root = Filesystem::GetInstalledPluginsDirectory(); |
| 81 | for (const auto& entry: std::filesystem::directory_iterator {root}) { |
| 82 | if (!entry.is_directory()) { |
| 83 | continue; |
| 84 | } |
| 85 | const auto jsonPath = entry.path() / "v1.json"; |
| 86 | if (!std::filesystem::exists(jsonPath)) { |
| 87 | continue; |
| 88 | } |
| 89 | this->TryAppend(jsonPath); |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | PluginStore::~PluginStore() { |
| 94 | } |
no test coverage detected