MCPcopy Create free account
hub / github.com/devkitPro/libctru / ACU_SetAllowApType

Function ACU_SetAllowApType

libctru/source/services/ac.c:135–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135Result ACU_SetAllowApType(acuConfig* config, u8 type)
136{
137 Result ret=0;
138 u32 *cmdbuf = getThreadCommandBuffer();
139 u32 *staticbufs = getThreadStaticBuffers();
140
141 cmdbuf[0] = IPC_MakeHeader(0x22,1,2); // 0x220042
142 cmdbuf[1] = type;
143 cmdbuf[2] = IPC_Desc_StaticBuffer(0x200, 0);
144 cmdbuf[3] = (u32)config;
145 staticbufs[0] = IPC_Desc_StaticBuffer(0x200, 0);
146 staticbufs[1] = (u32)config;
147
148 if(R_FAILED(ret = svcSendSyncRequest(acHandle))) return ret;
149
150 return (Result)cmdbuf[1];
151}
152
153Result ACU_SetNetworkArea(acuConfig* config, u8 area)
154{

Callers

nothing calls this directly

Calls 4

getThreadCommandBufferFunction · 0.85
getThreadStaticBuffersFunction · 0.85
IPC_MakeHeaderFunction · 0.85
IPC_Desc_StaticBufferFunction · 0.85

Tested by

no test coverage detected