sys_net: Use IDM, initialize networking on startup

This commit is contained in:
Raul Tambre 2016-04-18 10:06:22 +03:00
parent 31ec26a7a1
commit 2e5d20c315
No known key found for this signature in database
GPG key ID: FC357D4861AC031E
2 changed files with 106 additions and 71 deletions

View file

@ -254,9 +254,14 @@ Rpcs3App::Rpcs3App()
#ifdef _WIN32
timeBeginPeriod(1);
WSADATA wsaData;
WORD wVersionRequested = MAKEWORD(2, 2);
WSAStartup(wVersionRequested, &wsaData);
std::atexit([]
{
timeEndPeriod(1);
WSACleanup();
});
#endif