From f9348b96b7f8e32ef0d7562c554b81aed93c3db6 Mon Sep 17 00:00:00 2001 From: The Dax Date: Sun, 12 Jan 2014 15:33:29 -0500 Subject: [PATCH] Add more WLAN off behaviour. Without these, Peace Walker loads forever on subsequent missions on Windows. --- Core/HLE/sceNetAdhoc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/HLE/sceNetAdhoc.cpp b/Core/HLE/sceNetAdhoc.cpp index dc00e2712a..d4b0607b66 100644 --- a/Core/HLE/sceNetAdhoc.cpp +++ b/Core/HLE/sceNetAdhoc.cpp @@ -809,7 +809,7 @@ u32 sceNetAdhocctlAddHandler(u32 handlerPtr, u32 handlerArg) { if (!foundHandler && Memory::IsValidAddress(handlerPtr)) { if (adhocctlHandlers.size() >= MAX_ADHOCCTL_HANDLERS) { - ERROR_LOG(SCENET, "UNTESTED UNTESTED sceNetAdhocctlAddHandler(%x, %x): Too many handlers", handlerPtr, handlerArg); + ERROR_LOG(SCENET, "UNTESTED sceNetAdhocctlAddHandler(%x, %x): Too many handlers", handlerPtr, handlerArg); retval = ERROR_NET_ADHOCCTL_TOO_MANY_HANDLERS; return retval; } @@ -891,6 +891,7 @@ u32 sceNetAdhocctlDelHandler(u32 handlerID) { int sceNetAdhocctlTerm() { DEBUG_LOG(SCENET, "sceNetAdhocctlTerm()"); if (!g_Config.bEnableWlan) { + netAdhocctlInited = false; return 0; } @@ -1009,6 +1010,7 @@ int sceNetAdhocctlJoinEnterGameMode(const char *groupName, const char *macAddr, int sceNetAdhocTerm() { DEBUG_LOG(SCENET, "sceNetAdhocTerm()"); if (!g_Config.bEnableWlan) { + netAdhocInited = false; return 0; }