From 71fc03231f90bc737d5a1ef3a618c5c9f24fa425 Mon Sep 17 00:00:00 2001 From: AdamN <7974720+anr2me@users.noreply.github.com> Date: Fri, 10 Jan 2025 01:05:32 +0700 Subject: [PATCH 1/2] Allow to get Apctl Info even when Apctl not inited yet. --- Core/HLE/sceNet.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Core/HLE/sceNet.cpp b/Core/HLE/sceNet.cpp index e3b2d8cb5e..54c617377d 100644 --- a/Core/HLE/sceNet.cpp +++ b/Core/HLE/sceNet.cpp @@ -871,9 +871,6 @@ int sceNetApctlTerm() { static int sceNetApctlGetInfo(int code, u32 pInfoAddr) { DEBUG_LOG(Log::sceNet, "UNTESTED %s(%i, %08x) at %08x", __FUNCTION__, code, pInfoAddr, currentMIPS->pc); - if (!netApctlInited) - return hleLogError(Log::sceNet, ERROR_NET_APCTL_NOT_IN_BSS, "apctl not in bss"); // Only have valid info after joining an AP and got an IP, right? - switch (code) { case PSP_NET_APCTL_INFO_PROFILE_NAME: if (!Memory::IsValidRange(pInfoAddr, APCTL_PROFILENAME_MAXLEN)) From e8bf2effc63db8694b6df7f32c3e542566c5ad9a Mon Sep 17 00:00:00 2001 From: AdamN <7974720+anr2me@users.noreply.github.com> Date: Fri, 10 Jan 2025 07:10:27 +0700 Subject: [PATCH 2/2] Changed Address Replacement log channel to WARN, because apparently Debug channel being disabled on non-Windows --- Core/HLE/sceNetInet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceNetInet.cpp b/Core/HLE/sceNetInet.cpp index dc2b3fb168..f54f122890 100644 --- a/Core/HLE/sceNetInet.cpp +++ b/Core/HLE/sceNetInet.cpp @@ -595,7 +595,7 @@ static int sceNetInetBind(int socket, u32 namePtr, int namelen) { // Get Local IP Address sockaddr_in sockAddr{}; getLocalIp(&sockAddr); - DEBUG_LOG(Log::sceNet, "Bind: Address Replacement = %s => %s", ip2str(saddr.in.sin_addr).c_str(), ip2str(sockAddr.sin_addr).c_str()); + WARN_LOG(Log::sceNet, "Bind: Address Replacement = %s => %s", ip2str(saddr.in.sin_addr).c_str(), ip2str(sockAddr.sin_addr).c_str()); saddr.in.sin_addr.s_addr = sockAddr.sin_addr.s_addr; } // TODO: Make use Port Offset only for PPSSPP to PPSSPP communications (ie. IP addresses available in the group/friendlist), otherwise should be considered as Online Service thus should use the port as is.