Added udsEjectSpectator().
This commit is contained in:
parent
1671aeb7c2
commit
bdb2835b62
@ -287,6 +287,11 @@ Result udsDisconnectNetwork(void);
|
|||||||
*/
|
*/
|
||||||
Result udsEjectClient(u16 NetworkNodeID);
|
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.
|
* @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.
|
* @param bitmask Bitmask to clear/set in the attributes. See the UDSNETATTR enum values.
|
||||||
|
@ -325,6 +325,18 @@ Result udsEjectClient(u16 NetworkNodeID)
|
|||||||
return cmdbuf[1];
|
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)
|
Result udsUpdateNetworkAttribute(u16 bitmask, bool flag)
|
||||||
{
|
{
|
||||||
u32* cmdbuf=getThreadCommandBuffer();
|
u32* cmdbuf=getThreadCommandBuffer();
|
||||||
|
Loading…
Reference in New Issue
Block a user