#include "Flatline.h" unsigned char WSAStarted = 0; unsigned char NetPlatform_Initalize() { WSADATA wsaData; if(!WSAStarted) { if (WSAStartup(MAKEWORD(2, 2), &wsaData)) { DDrConsole_PrintF("WSA initalization failed"); return false; } DDrConsole_PrintF("net started using WSA version %d.%d", LOBYTE(wsaData.wVersion), HIBYTE(wsaData.wVersion)); } return true; } unsigned char NetPlatform_Shutdown() { WSACleanup(); return true; }