Remove RGB controllers argument from standard detector

This commit is contained in:
Adam Honse 2023-01-26 20:19:45 -06:00
parent 060567548f
commit 92f0720639
30 changed files with 35 additions and 51 deletions

View file

@ -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);
}