MCPcopy Create free account
hub / github.com/devkitPro/3ds-hbmenu / networkInit

Function networkInit

source/network.c:7–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5static void* SOC_buffer;
6
7bool networkInit(void)
8{
9 if (!SOC_buffer)
10 {
11 SOC_buffer = memalign(0x1000, 0x100000);
12 if (!SOC_buffer)
13 return false;
14 }
15
16 Result ret = socInit(SOC_buffer, 0x100000);
17 if (R_FAILED(ret))
18 {
19 socExit();
20 return false;
21 }
22 return true;
23}
24
25void networkDeactivate(void)
26{

Callers 2

netsenderInitFunction · 0.85
netloaderInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected