#include "Flatline.h" bool WSAStarted = 0; bool 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; } bool NetPlatform_Shutdown() { WSACleanup(); return true; }