Add controller flags field with flags for controller location and update behavior
This commit is contained in:
parent
1967ec9526
commit
bb79fbfc07
5 changed files with 75 additions and 5 deletions
|
|
@ -593,6 +593,12 @@ void NetworkClient::ProcessReply_ControllerData(unsigned int data_size, char * d
|
|||
|
||||
new_controller->ReadDeviceDescription((unsigned char *)data, GetProtocolVersion());
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| Mark this controller as remote owned |
|
||||
\*-----------------------------------------------------*/
|
||||
new_controller->flags &= ~CONTROLLER_FLAG_LOCAL;
|
||||
new_controller->flags |= CONTROLLER_FLAG_REMOTE;
|
||||
|
||||
ControllerListMutex.lock();
|
||||
|
||||
if(dev_idx >= server_controllers.size())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue