Store name in ZotacTuringGPUController to avoid setting it in detector

This commit is contained in:
Adam Honse 2025-08-14 23:18:16 -05:00
parent ad9fd08a08
commit eb199dae67
4 changed files with 49 additions and 42 deletions

View file

@ -51,9 +51,8 @@ void DetectZotacTuringGPUControllers(i2c_smbus_interface* bus, u8 i2c_addr, cons
{
if(TestForZotacTuringGPUController(bus, i2c_addr))
{
ZotacTuringGPUController* controller = new ZotacTuringGPUController(bus, i2c_addr);
ZotacTuringGPUController* controller = new ZotacTuringGPUController(bus, i2c_addr, name);
RGBController_ZotacTuringGPU* rgb_controller = new RGBController_ZotacTuringGPU(controller);
rgb_controller->name = name;
ResourceManager::get()->RegisterRGBController(rgb_controller);
}