From f40ea8851c1f2019ce68dd6bbca32e8827f0c7e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Miko=C5=82ajczyk?= Date: Sat, 12 Jul 2025 15:28:40 +0100 Subject: [PATCH] Redirect InetPtonEx to InetPton --- src/core/libraries/network/net.cpp | 6 +++--- src/core/libraries/network/net.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/libraries/network/net.cpp b/src/core/libraries/network/net.cpp index 22fec11e9..4a76f5b41 100644 --- a/src/core/libraries/network/net.cpp +++ b/src/core/libraries/network/net.cpp @@ -1339,9 +1339,9 @@ int PS4_SYSV_ABI sceNetInetPton(int af, const char* src, void* dst) { return res; } -int PS4_SYSV_ABI sceNetInetPtonEx() { - LOG_ERROR(Lib_Net, "(STUBBED) called"); - return ORBIS_OK; +int PS4_SYSV_ABI sceNetInetPtonEx(int af, const char* src, void* dst, int flags) { + LOG_WARNING(Lib_Net, "ignored flags, redirecting to sceNetInetPton"); + return sceNetInetPton(af, src, dst); } int PS4_SYSV_ABI sceNetInetPtonWithScopeId() { diff --git a/src/core/libraries/network/net.h b/src/core/libraries/network/net.h index 2b7d42cfe..b3c93d7d9 100644 --- a/src/core/libraries/network/net.h +++ b/src/core/libraries/network/net.h @@ -297,7 +297,7 @@ u16 PS4_SYSV_ABI sceNetHtons(u16 host16); const char* PS4_SYSV_ABI sceNetInetNtop(int af, const void* src, char* dst, u32 size); int PS4_SYSV_ABI sceNetInetNtopWithScopeId(); int PS4_SYSV_ABI sceNetInetPton(int af, const char* src, void* dst); -int PS4_SYSV_ABI sceNetInetPtonEx(); +int PS4_SYSV_ABI sceNetInetPtonEx(int af, const char* src, void* dst, int flags); int PS4_SYSV_ABI sceNetInetPtonWithScopeId(); int PS4_SYSV_ABI sceNetInfoDumpStart(); int PS4_SYSV_ABI sceNetInfoDumpStop();