From bd37d3e32c17be06d3c0ca3c2eb61100524de58f Mon Sep 17 00:00:00 2001 From: ANR2ME Date: Wed, 23 Sep 2020 02:12:41 +0700 Subject: [PATCH] Added more info on some sceNet logs --- Core/HLE/sceNetAdhoc.cpp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Core/HLE/sceNetAdhoc.cpp b/Core/HLE/sceNetAdhoc.cpp index 2b033b8d00..7440ec828f 100644 --- a/Core/HLE/sceNetAdhoc.cpp +++ b/Core/HLE/sceNetAdhoc.cpp @@ -1005,11 +1005,12 @@ int sceNetAdhocctlGetState(u32 ptrToStatus) { if (!Memory::IsValidAddress(ptrToStatus)) return ERROR_NET_ADHOCCTL_INVALID_ARG; - // Return Thread Status - Memory::Write_U32(NetAdhocctl_GetState(), ptrToStatus); - // Return Success - return hleLogSuccessVerboseI(SCENET, 0); + int state = NetAdhocctl_GetState(); + // Output Adhocctl State + Memory::Write_U32(state, ptrToStatus); + // Return Success + return hleLogSuccessVerboseI(SCENET, 0, "state = %d", state); } /** @@ -2603,7 +2604,7 @@ int sceNetAdhocTerm() { } static int sceNetAdhocGetPdpStat(u32 structSize, u32 structAddr) { - VERBOSE_LOG(SCENET, "UNTESTED sceNetAdhocGetPdpStat(%08x, %08x) at %08x", structSize, structAddr, currentMIPS->pc); + VERBOSE_LOG(SCENET, "sceNetAdhocGetPdpStat(%08x, %08x) at %08x", structSize, structAddr, currentMIPS->pc); // Library is initialized if (netAdhocInited) @@ -2621,6 +2622,7 @@ static int sceNetAdhocGetPdpStat(u32 structSize, u32 structAddr) { { // Return Required Size *buflen = sizeof(SceNetAdhocPdpStat) * socketcount; + VERBOSE_LOG(SCENET, "PDP Socket Count: %d", socketcount); // Success return 0; @@ -2658,6 +2660,8 @@ static int sceNetAdhocGetPdpStat(u32 structSize, u32 structAddr) { if (i > 0) buf[i - 1].next = structAddr + (i * sizeof(SceNetAdhocPdpStat)); + VERBOSE_LOG(SCENET, "PDP Socket Id: %d, LPort: %d, RecvSbCC: %d", buf[i].id, buf[i].lport, buf[i].rcv_sb_cc); + // Increment Counter i++; } @@ -2703,6 +2707,7 @@ static int sceNetAdhocGetPtpStat(u32 structSize, u32 structAddr) { if (buflen != NULL && buf == NULL) { // Return Required Size *buflen = sizeof(SceNetAdhocPtpStat) * socketcount; + VERBOSE_LOG(SCENET, "PTP Socket Count: %d", socketcount); // Success return 0; @@ -2737,6 +2742,8 @@ static int sceNetAdhocGetPtpStat(u32 structSize, u32 structAddr) { // Link previous Element to this one if (i > 0) buf[i - 1].next = structAddr + (i * sizeof(SceNetAdhocPtpStat)); + + VERBOSE_LOG(SCENET, "PTP Socket Id: %d, LPort: %d, RecvSbCC: %d", buf[i].id, buf[i].lport, buf[i].rcv_sb_cc); // Increment Counter i++;