mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-01 15:02:40 +00:00
init winsock2
This commit is contained in:
parent
c1b3328801
commit
a314b7a45d
@ -16,6 +16,9 @@
|
|||||||
#ifdef ENABLE_DISCORD_RPC
|
#ifdef ENABLE_DISCORD_RPC
|
||||||
#include "common/discord_rpc_handler.h"
|
#include "common/discord_rpc_handler.h"
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <WinSock2.h>
|
||||||
|
#endif
|
||||||
#include "common/elf_info.h"
|
#include "common/elf_info.h"
|
||||||
#include "common/ntapi.h"
|
#include "common/ntapi.h"
|
||||||
#include "common/path_util.h"
|
#include "common/path_util.h"
|
||||||
@ -46,6 +49,10 @@ Emulator::Emulator() {
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
Common::NtApi::Initialize();
|
Common::NtApi::Initialize();
|
||||||
SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS);
|
SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS);
|
||||||
|
// need to init this in order for winsock2 to work
|
||||||
|
WORD versionWanted = MAKEWORD(2, 2);
|
||||||
|
WSADATA wsaData;
|
||||||
|
WSAStartup(versionWanted, &wsaData);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Create stdin/stdout/stderr
|
// Create stdin/stdout/stderr
|
||||||
|
Loading…
Reference in New Issue
Block a user