mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-08 18:21:43 -04:00
Split out detection system from ResourceManager into DetectionManager
* Split detection system out into its own class, DetectionManager
* Clean up ResourceManger's many callbacks into just two, one for detection and one general purpose
This commit is contained in:
1 parent
58582202cf
commit
ad364871c6
224 files changed
+3161
-2788
No files matched your search
@@ -9,11 +9,11 @@
|
||||
| SPDX-License-Identifier: GPL-2.0-or-later |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "Detector.h"
|
||||
#include "ZotacBlackwellGPUController.h"
|
||||
#include "RGBController_ZotacBlackwellGPU.h"
|
||||
#include "DetectionManager.h"
|
||||
#include "i2c_smbus.h"
|
||||
#include "pci_ids.h"
|
||||
#include "RGBController_ZotacBlackwellGPU.h"
|
||||
#include "ZotacBlackwellGPUController.h"
|
||||
|
||||
/******************************************************************************************\
|
||||
* *
|
||||
@@ -36,7 +36,7 @@ void DetectZotacBlackwellGPUControllersPCI(i2c_smbus_interface* bus, u8 i2c_addr
|
||||
ZotacBlackwellGPUController* controller = new ZotacBlackwellGPUController(bus, i2c_addr, name);
|
||||
RGBController_ZotacBlackwellGPU* rgb_controller = new RGBController_ZotacBlackwellGPU(controller);
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
DetectionManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user