mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-18 14:54:09 -04:00
Add saving support to network protocol
This commit is contained in:
1 parent
eade8fea1a
commit
5130f07e21
6 files changed
+50
No files matched your search
@@ -690,6 +690,19 @@ void NetworkServer::ListenThreadFunction(NetworkClientInfo * client_info)
|
||||
}
|
||||
break;
|
||||
|
||||
case NET_PACKET_ID_RGBCONTROLLER_SAVEMODE:
|
||||
if(data == NULL)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
if(header.pkt_dev_idx < controllers.size())
|
||||
{
|
||||
controllers[header.pkt_dev_idx]->SetModeDescription((unsigned char *)data, client_info->client_protocol_version);
|
||||
controllers[header.pkt_dev_idx]->SaveMode();
|
||||
}
|
||||
break;
|
||||
|
||||
case NET_PACKET_ID_REQUEST_PROFILE_LIST:
|
||||
SendReply_ProfileList(client_sock);
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user