mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-27 14:08:39 +01:00
Fix network not working because game calls WSACleanup on startup.
This commit is contained in:
parent
2bbf9ef6df
commit
a66779ed00
1 changed files with 5 additions and 0 deletions
|
@ -221,6 +221,11 @@ static void run_at_startup()
|
||||||
WSADATA wsaData;
|
WSADATA wsaData;
|
||||||
if (WSAStartup(MAKEWORD(2, 2), &wsaData) != NO_ERROR)
|
if (WSAStartup(MAKEWORD(2, 2), &wsaData) != NO_ERROR)
|
||||||
return;
|
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
|
#else
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue