Extensions: Auto-add linked extensions

This commit is contained in:
Paul Hollinsky
2021-04-27 21:12:24 -04:00
parent 65a6fadd1d
commit 5733300de6
4 changed files with 47 additions and 1 deletions
+5
View File
@@ -1,5 +1,6 @@
#include "icsneo/device/devicefinder.h"
#include "icsneo/platform/devices.h"
#include "generated/extensions/builtin.h"
using namespace icsneo;
@@ -245,6 +246,10 @@ std::vector<std::shared_ptr<Device>> DeviceFinder::FindAll() {
foundDevices.insert(foundDevices.end(), std::make_move_iterator(results.begin()), std::make_move_iterator(results.end()));
}
for(auto& device : foundDevices) {
AddBuiltInExtensionsTo(device);
}
return foundDevices;
}