From c5d69d5fcce159cb33a622a50e50896091b5ef76 Mon Sep 17 00:00:00 2001 From: Nemoumbra Date: Wed, 12 Feb 2025 20:00:22 +0300 Subject: [PATCH] Configured the logs --- Core/HLE/sceNet_lib.cpp | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Core/HLE/sceNet_lib.cpp b/Core/HLE/sceNet_lib.cpp index b287b8488d..a72bfcbbcb 100644 --- a/Core/HLE/sceNet_lib.cpp +++ b/Core/HLE/sceNet_lib.cpp @@ -36,7 +36,7 @@ u32 sceNetStrtoul(const char *str, u32 strEndAddrPtr, int base) { u32 psp_str_end = Memory::GetAddressFromHostPointer(str_end); Memory::Write_U32(psp_str_end, strEndAddrPtr); - return res; + return hleLogDebug(Log::sceNet, res); } u32 sceNetMemmove(void* dest, u32 srcPtr, u32 count) { @@ -47,7 +47,7 @@ u32 sceNetMemmove(void* dest, u32 srcPtr, u32 count) { // Remap the pointer u32 res = Memory::GetAddressFromHostPointer(host_ptr); - return res; + return hleLogDebug(Log::sceNet, res); } u32 sceNetStrcpy(void* dest, const char *src) { @@ -56,28 +56,28 @@ u32 sceNetStrcpy(void* dest, const char *src) { // Remap the pointer u32 res = Memory::GetAddressFromHostPointer(host_ptr); - return res; + return hleLogDebug(Log::sceNet, res); } s32 sceNetStrncmp(const char *lhs, const char *rhs, u32 count) { // Redirect that to libc s32 res = std::strncmp(lhs, rhs, count); - return res; + return hleLogDebug(Log::sceNet, res); } s32 sceNetStrcasecmp(const char *lhs, const char *rhs) { // Redirect that to eh... what is this, a libc extension? s32 res = strcasecmp(lhs, rhs); - return res; + return hleLogDebug(Log::sceNet, res); } s32 sceNetStrcmp(const char *lhs, const char *rhs) { // Redirect that to libc s32 res = std::strcmp(lhs, rhs); - return res; + return hleLogDebug(Log::sceNet, res); } u32 sceNetStrncpy(void *dest, const char *src, u32 count) { @@ -86,7 +86,7 @@ u32 sceNetStrncpy(void *dest, const char *src, u32 count) { // Remap the pointer u32 res = Memory::GetAddressFromHostPointer(host_ptr); - return res; + return hleLogDebug(Log::sceNet, res); } u32 sceNetStrchr(void *str, int ch) { @@ -98,37 +98,37 @@ u32 sceNetStrchr(void *str, int ch) { // Remap the pointer u32 res = Memory::GetAddressFromHostPointer(host_ptr); - return res; + return hleLogDebug(Log::sceNet, res); } u32 sceNetStrlen(const char* str) { // Redirect that to libc u32 res = std::strlen(str); - return res; + return hleLogDebug(Log::sceNet, res); } s32 sceNetMemcmp(u32 lhsPtr, u32 rhsPtr, u32 count) { // Redirect that to libc s32 res = std::memcmp(Memory::GetPointer(lhsPtr), Memory::GetPointer(rhsPtr), count); - return res; + return hleLogDebug(Log::sceNet, res); } const HLEFunction sceNet_lib[] = { {0X1858883D, nullptr, "sceNetRand", 'i', "" }, - {0X2A73ADDC, &WrapU_CUI, "sceNetStrtoul", 'i', "" }, - {0X4753D878, &WrapU_VUU, "sceNetMemmove", 'i', "" }, - {0X80C9F02A, &WrapU_VC, "sceNetStrcpy", 'i', "" }, - {0X94DCA9F0, &WrapI_CCU, "sceNetStrncmp", 'i', "" }, - {0X9CFBC7E3, &WrapI_CC, "sceNetStrcasecmp", 'i', "" }, - {0XA0F16ABD, &WrapI_CC, "sceNetStrcmp", 'i', "" }, - {0XB5CE388A, &WrapU_VCU, "sceNetStrncpy", 'i', "" }, - {0XBCBE14CF, &WrapU_VI, "sceNetStrchr", 'i', "" }, + {0X2A73ADDC, &WrapU_CUI, "sceNetStrtoul", 'i', "sxi" }, + {0X4753D878, &WrapU_VUU, "sceNetMemmove", 'i', "xxx" }, + {0X80C9F02A, &WrapU_VC, "sceNetStrcpy", 'i', "xs" }, + {0X94DCA9F0, &WrapI_CCU, "sceNetStrncmp", 'i', "ssx" }, + {0X9CFBC7E3, &WrapI_CC, "sceNetStrcasecmp", 'i', "ss" }, + {0XA0F16ABD, &WrapI_CC, "sceNetStrcmp", 'i', "ss" }, + {0XB5CE388A, &WrapU_VCU, "sceNetStrncpy", 'i', "xsx" }, + {0XBCBE14CF, &WrapU_VI, "sceNetStrchr", 'i', "si" }, {0XCF705E46, nullptr, "sceNetSprintf", 'i', "" }, - {0XD8722983, &WrapU_C, "sceNetStrlen", 'i', "" }, - {0XE0A81C7C, &WrapI_UUU, "sceNetMemcmp", 'i', "" }, + {0XD8722983, &WrapU_C, "sceNetStrlen", 'i', "s" }, + {0XE0A81C7C, &WrapI_UUU, "sceNetMemcmp", 'i', "xxx" }, };