From 08a9e2111435878de6a85b84868729e3d6b90a06 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Thu, 9 Apr 2026 23:19:19 -0500 Subject: [PATCH] Add RescanDevices to plugin API --- OpenRGBPluginAPI.cpp | 5 +++++ OpenRGBPluginAPI.h | 1 + OpenRGBPluginInterface.h | 1 + 3 files changed, 7 insertions(+) diff --git a/OpenRGBPluginAPI.cpp b/OpenRGBPluginAPI.cpp index eb2711fad..469687bb5 100644 --- a/OpenRGBPluginAPI.cpp +++ b/OpenRGBPluginAPI.cpp @@ -154,6 +154,11 @@ std::string OpenRGBPluginAPI::GetDetectionString() return(resource_manager->GetDetectionString()); } +void OpenRGBPluginAPI::RescanDevices() +{ + resource_manager->RescanDevices(); +} + void OpenRGBPluginAPI::WaitForDetection() { resource_manager->WaitForDetection(); diff --git a/OpenRGBPluginAPI.h b/OpenRGBPluginAPI.h index 802520efd..66bd07bea 100644 --- a/OpenRGBPluginAPI.h +++ b/OpenRGBPluginAPI.h @@ -50,6 +50,7 @@ public: bool GetDetectionEnabled(); unsigned int GetDetectionPercent(); std::string GetDetectionString(); + void RescanDevices(); void WaitForDetection(); std::vector & GetRGBControllers(); diff --git a/OpenRGBPluginInterface.h b/OpenRGBPluginInterface.h index 344e6838a..bd0a4dc26 100644 --- a/OpenRGBPluginInterface.h +++ b/OpenRGBPluginInterface.h @@ -101,6 +101,7 @@ public: virtual bool GetDetectionEnabled() = 0; virtual unsigned int GetDetectionPercent() = 0; virtual std::string GetDetectionString() = 0; + virtual void RescanDevices() = 0; virtual void WaitForDetection() = 0; virtual std::vector & GetRGBControllers() = 0;