mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-26 04:16:18 +00:00
[Libs] sceNet (#2815)
* implemented sceNetGetMacAddress * added all error codes * added ORBIS_NET_CTL_INFO_DEVICE , ORBIS_NET_CTL_INFO_MTU * RE sceNetConnect * sceNetBind RE * RE sceNetAccept * RE sceNetGetpeername ,sceNetGetsockname * fixup * RE sceNetListen ,sceNetSetsockopt * sceNetShutdown,sceNetSocket,sceNetSocketAbort,sceNetSocketClose * sceSend,sceSendTo,sceSendMsg * sceNetRecv,sceNetRecvFrom,sceNetRecvMsg RE * some kernel net calls * init winsock2 * logging * sockets interface * added winsock to SCE* error codes conversion * implemented net basic calls * some net calls implementation * clang fixes * fixes for linux+macOS * more fix * added sys_accept implementation * more posix net calls * implemented sys_getsockname * fixed redirection * fixed posix socket? * posix_sendto , recvfrom * added sys_socketclose * unsigned error log * added setsocketoptions * added more posix net calls * implement getsocketOptions * stubbed p2p calls
This commit is contained in:
parent
53b2ccffca
commit
bb59cd81fa
16 changed files with 1988 additions and 74 deletions
|
@ -16,6 +16,9 @@
|
|||
#ifdef ENABLE_DISCORD_RPC
|
||||
#include "common/discord_rpc_handler.h"
|
||||
#endif
|
||||
#ifdef _WIN32
|
||||
#include <WinSock2.h>
|
||||
#endif
|
||||
#include "common/elf_info.h"
|
||||
#include "common/ntapi.h"
|
||||
#include "common/path_util.h"
|
||||
|
@ -46,6 +49,10 @@ Emulator::Emulator() {
|
|||
#ifdef _WIN32
|
||||
Common::NtApi::Initialize();
|
||||
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
|
||||
|
||||
// Create stdin/stdout/stderr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue