MCPcopy Create free account
hub / github.com/OpenKneeboard/OpenKneeboard / LoadPluginsFromFilesystem

Method LoadPluginsFromFilesystem

src/app/app-common/PluginStore.cpp:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void 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
93PluginStore::~PluginStore() {
94}

Callers 1

PluginStoreMethod · 0.95

Calls 2

TryAppendMethod · 0.95

Tested by

no test coverage detected