| 6 | static int nxlink_sock = -1; // for stdio on Switch |
| 7 | |
| 8 | void 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 | |
| 17 | void switch_disable_network() |
| 18 | { |