|
|
|
|
@ -1461,26 +1461,10 @@ void ResourceManager::DetectDevicesThreadFunction()
|
|
|
|
|
{
|
|
|
|
|
DetectionProgressChanged();
|
|
|
|
|
|
|
|
|
|
device_detectors[detector_idx](rgb_controllers_hw);
|
|
|
|
|
device_detectors[detector_idx]();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*-------------------------------------------------*\
|
|
|
|
|
| If the device list size has changed, call the |
|
|
|
|
|
| device list changed callbacks |
|
|
|
|
|
\*-------------------------------------------------*/
|
|
|
|
|
if(rgb_controllers_hw.size() != detection_prev_size)
|
|
|
|
|
{
|
|
|
|
|
/*-------------------------------------------------*\
|
|
|
|
|
| First, load sizes for the new controllers |
|
|
|
|
|
\*-------------------------------------------------*/
|
|
|
|
|
for(unsigned int controller_size_idx = detection_prev_size; controller_size_idx < rgb_controllers_hw.size(); controller_size_idx++)
|
|
|
|
|
{
|
|
|
|
|
profile_manager->LoadDeviceFromListWithOptions(rgb_controllers_sizes, detection_size_entry_used, rgb_controllers_hw[controller_size_idx], true, false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UpdateDeviceList();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if(rgb_controllers_hw.size() == detection_prev_size)
|
|
|
|
|
{
|
|
|
|
|
LOG_DEBUG("[%s] no devices found", detection_string);
|
|
|
|
|
}
|
|
|
|
|
|