mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Extensions: Auto-add linked extensions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user