ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/flatline/Flatline_Win32.c
Revision: 877
Committed: Sun Jun 2 11:25:34 2013 UTC (12 years, 4 months ago) by alloc
Content type: text/x-csrc
File size: 473 byte(s)
Log Message:
Daodan: Moved flatline to subfolder, flatline enabled through patch "flatline"

File Contents

# Content
1 #include "Flatline.h"
2 unsigned char WSAStarted = 0;
3 unsigned char NetPlatform_Initalize()
4 {
5 WSADATA wsaData;
6 if(!WSAStarted)
7 {
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 }
15 return true;
16 }
17
18 unsigned char NetPlatform_Shutdown()
19 {
20 WSACleanup();
21 return true;
22 }