print paths of found plugins instead of a count

This commit is contained in:
Jussi Kuokkanen 2023-10-22 18:39:29 +03:00
parent 5bebd76b1a
commit bfff550b9d
2 changed files with 1 additions and 2 deletions

View File

@ -27,6 +27,7 @@ std::optional<std::vector<boost::shared_ptr<DevicePlugin>>> DevicePlugin::loadPl
auto plugin = boost::dll::import_symbol<DevicePlugin>( auto plugin = boost::dll::import_symbol<DevicePlugin>(
entry.path().string(), TUXCLOCKER_PLUGIN_SYMBOL_NAME); entry.path().string(), TUXCLOCKER_PLUGIN_SYMBOL_NAME);
retval.push_back(plugin); retval.push_back(plugin);
std::cout << "found plugin at " << entry.path().string() << "\n";
} catch (boost::system::system_error &e) { } catch (boost::system::system_error &e) {
} }
} }

View File

@ -73,9 +73,7 @@ int main(int argc, char **argv) {
TreeNode<DeviceNode> lvl1nodes; TreeNode<DeviceNode> lvl1nodes;
if (plugins.has_value()) { if (plugins.has_value()) {
qDebug() << "found " << plugins.value().size() << " plugins";
for (auto &plugin : plugins.value()) { for (auto &plugin : plugins.value()) {
// rootNodes.append(plugin->deviceRootNode());
// Root node should always be empty // Root node should always be empty
for (const auto &node : plugin->deviceRootNode().children()) { for (const auto &node : plugin->deviceRootNode().children()) {
lvl1nodes.appendChild(node); lvl1nodes.appendChild(node);