MCPcopy Create free account
hub / github.com/diasurgical/devilution / switch_enable_network

Function switch_enable_network

SourceX/platform/switch/network.cpp:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6static int nxlink_sock = -1; // for stdio on Switch
7
8void switch_enable_network()
9{
10 // enable network and stdio on Switch
11 socketInitializeDefault();
12 // enable error messages via nxlink on Switch
13 nxlink_sock = nxlinkStdio();
14 atexit(switch_disable_network);
15}
16
17void switch_disable_network()
18{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected