Added udsEjectSpectator().

This commit is contained in:
yellows8 2016-04-06 16:32:25 -04:00
parent 1671aeb7c2
commit bdb2835b62
2 changed files with 17 additions and 0 deletions

View File

@ -287,6 +287,11 @@ Result udsDisconnectNetwork(void);
*/
Result udsEjectClient(u16 NetworkNodeID);
/**
* @brief This can be used by the host to force-disconnect the spectator.
*/
Result udsEjectSpectator();
/**
* @brief This can be used by the host to update the network attributes. If bitmask 0x4 is clear in the input bitmask, this clears that bit in the value before actually writing the value into state.
* @param bitmask Bitmask to clear/set in the attributes. See the UDSNETATTR enum values.

View File

@ -325,6 +325,18 @@ Result udsEjectClient(u16 NetworkNodeID)
return cmdbuf[1];
}
Result udsEjectSpectator()
{
u32* cmdbuf=getThreadCommandBuffer();
cmdbuf[0]=IPC_MakeHeader(0x6,0,0); // 0x60000
Result ret=0;
if(R_FAILED(ret=svcSendSyncRequest(__uds_servhandle)))return ret;
return cmdbuf[1];
}
Result udsUpdateNetworkAttribute(u16 bitmask, bool flag)
{
u32* cmdbuf=getThreadCommandBuffer();