Fix network not working because game calls WSACleanup on startup.

merge-requests/28/head
Mr_Goldberg 5 years ago
parent 2bbf9ef6df
commit a66779ed00
No known key found for this signature in database
GPG Key ID: 8597D87419DEF278

@ -221,6 +221,11 @@ static void run_at_startup()
WSADATA wsaData;
if (WSAStartup(MAKEWORD(2, 2), &wsaData) != NO_ERROR)
return;
for (int i = 0; i < 10; ++i) {
//hack: the game Full Mojo Rampage calls WSACleanup on startup so we call WSAStartup a few times so it doesn't get deallocated.
WSAStartup(MAKEWORD(2, 2), &wsaData);
}
#else
#endif

Loading…
Cancel
Save