| 1 |
|
#include "Flatline.h" |
| 2 |
< |
|
| 2 |
> |
bool WSAStarted = 0; |
| 3 |
|
bool NetPlatform_Initalize() |
| 4 |
|
{ |
| 5 |
|
WSADATA wsaData; |
| 6 |
< |
|
| 7 |
< |
if (WSAStartup(MAKEWORD(2, 2), &wsaData)) |
| 6 |
> |
if(!WSAStarted) |
| 7 |
|
{ |
| 8 |
< |
DDrConsole_PrintF("WSA initalization failed"); |
| 9 |
< |
return false; |
| 8 |
> |
if (WSAStartup(MAKEWORD(2, 2), &wsaData)) |
| 9 |
> |
{ |
| 10 |
> |
DDrConsole_PrintF("WSA initalization failed"); |
| 11 |
> |
return false; |
| 12 |
> |
} |
| 13 |
> |
DDrConsole_PrintF("net started using WSA version %d.%d", LOBYTE(wsaData.wVersion), HIBYTE(wsaData.wVersion)); |
| 14 |
|
} |
| 12 |
– |
DDrConsole_PrintF("net started using WSA version %d.%d", LOBYTE(wsaData.wVersion), HIBYTE(wsaData.wVersion)); |
| 15 |
|
return true; |
| 16 |
|
} |
| 17 |
|
|