net: Stub sceNetErrnoLoc (#1271)

This commit is contained in:
Dzmitry Dubrova
2024-10-06 22:34:55 +03:00
committed by GitHub
parent 3c0255b953
commit 75c92a7cd1
2 changed files with 5 additions and 3 deletions

View File

@@ -18,6 +18,8 @@
namespace Libraries::Net { namespace Libraries::Net {
static thread_local int32_t net_errno = 0;
int PS4_SYSV_ABI in6addr_any() { int PS4_SYSV_ABI in6addr_any() {
LOG_ERROR(Lib_Net, "(STUBBED) called"); LOG_ERROR(Lib_Net, "(STUBBED) called");
return ORBIS_OK; return ORBIS_OK;
@@ -563,9 +565,9 @@ int PS4_SYSV_ABI sceNetEpollWait() {
return ORBIS_OK; return ORBIS_OK;
} }
int PS4_SYSV_ABI sceNetErrnoLoc() { int* PS4_SYSV_ABI sceNetErrnoLoc() {
LOG_ERROR(Lib_Net, "(STUBBED) called"); LOG_ERROR(Lib_Net, "(STUBBED) called");
return ORBIS_OK; return &net_errno;
} }
int PS4_SYSV_ABI sceNetEtherNtostr() { int PS4_SYSV_ABI sceNetEtherNtostr() {

View File

@@ -136,7 +136,7 @@ int PS4_SYSV_ABI sceNetEpollControl();
int PS4_SYSV_ABI sceNetEpollCreate(); int PS4_SYSV_ABI sceNetEpollCreate();
int PS4_SYSV_ABI sceNetEpollDestroy(); int PS4_SYSV_ABI sceNetEpollDestroy();
int PS4_SYSV_ABI sceNetEpollWait(); int PS4_SYSV_ABI sceNetEpollWait();
int PS4_SYSV_ABI sceNetErrnoLoc(); int* PS4_SYSV_ABI sceNetErrnoLoc();
int PS4_SYSV_ABI sceNetEtherNtostr(); int PS4_SYSV_ABI sceNetEtherNtostr();
int PS4_SYSV_ABI sceNetEtherStrton(); int PS4_SYSV_ABI sceNetEtherStrton();
int PS4_SYSV_ABI sceNetEventCallbackCreate(); int PS4_SYSV_ABI sceNetEventCallbackCreate();