From 824fedbef67081614a94ae84d587b032d0da465f Mon Sep 17 00:00:00 2001 From: ANR2ME Date: Sun, 4 Apr 2021 14:03:17 +0700 Subject: [PATCH] Randomize signal strength between 1%~99% since games like MGS:PW are using signal strength to determine the strength of the recruit --- Core/HLE/sceNet.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Core/HLE/sceNet.cpp b/Core/HLE/sceNet.cpp index bff75e9856..047e29745b 100644 --- a/Core/HLE/sceNet.cpp +++ b/Core/HLE/sceNet.cpp @@ -1271,7 +1271,12 @@ static int sceNetApctlGetBSSDescEntryUser(int entryId, int infoId, u32 resultAdd break; case PSP_NET_APCTL_DESC_SIGNAL_STRENGTH: // Return 1 byte - Memory::WriteStruct(resultAddr, &netApctlInfo.strength); + if (entryId == 0) + Memory::WriteStruct(resultAddr, &netApctlInfo.strength); + else { + // Randomize signal strength between 1%~99% since games like MGS:PW are using signal strength to determine the strength of the recruit + Memory::Write_U8(rand()*99 + 1, resultAddr); + } break; case PSP_NET_APCTL_DESC_SECURITY: // Return one 32-bit value