mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-15 14:47:14 -04:00
Add SDK command to rescan devices
This commit is contained in:
1 parent
b6d4ded29a
commit
0cfe5ae0bb
4 files changed
+20
No files matched your search
@@ -668,6 +668,10 @@ void NetworkServer::ListenThreadFunction(NetworkClientInfo * client_info)
|
||||
ProcessRequest_ClientString(client_sock, header.pkt_size, data);
|
||||
break;
|
||||
|
||||
case NET_PACKET_ID_REQUEST_RESCAN_DEVICES:
|
||||
ProcessRequest_RescanDevices();
|
||||
break;
|
||||
|
||||
case NET_PACKET_ID_RGBCONTROLLER_RESIZEZONE:
|
||||
if(data == NULL)
|
||||
{
|
||||
@@ -1046,6 +1050,11 @@ void NetworkServer::ProcessRequest_ClientString(SOCKET client_sock, unsigned int
|
||||
ClientInfoChanged();
|
||||
}
|
||||
|
||||
void NetworkServer::ProcessRequest_RescanDevices()
|
||||
{
|
||||
ResourceManager::get()->DetectDevices();
|
||||
}
|
||||
|
||||
void NetworkServer::SendReply_ControllerCount(SOCKET client_sock)
|
||||
{
|
||||
NetPacketHeader reply_hdr;
|
||||
|
||||
Reference in new issue
Block a user