mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2025-02-25 18:55:24 -06:00
print paths of found plugins instead of a count
This commit is contained in:
parent
5bebd76b1a
commit
bfff550b9d
@ -27,6 +27,7 @@ std::optional<std::vector<boost::shared_ptr<DevicePlugin>>> DevicePlugin::loadPl
|
||||
auto plugin = boost::dll::import_symbol<DevicePlugin>(
|
||||
entry.path().string(), TUXCLOCKER_PLUGIN_SYMBOL_NAME);
|
||||
retval.push_back(plugin);
|
||||
std::cout << "found plugin at " << entry.path().string() << "\n";
|
||||
} catch (boost::system::system_error &e) {
|
||||
}
|
||||
}
|
||||
|
@ -73,9 +73,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
TreeNode<DeviceNode> lvl1nodes;
|
||||
if (plugins.has_value()) {
|
||||
qDebug() << "found " << plugins.value().size() << " plugins";
|
||||
for (auto &plugin : plugins.value()) {
|
||||
// rootNodes.append(plugin->deviceRootNode());
|
||||
// Root node should always be empty
|
||||
for (const auto &node : plugin->deviceRootNode().children()) {
|
||||
lvl1nodes.appendChild(node);
|
||||
|
Loading…
Reference in New Issue
Block a user