From 23dadb11bfc67157acc35315d55a6ef0bfb79e3f Mon Sep 17 00:00:00 2001 From: Katharine Chui Date: Wed, 21 Oct 2026 15:39:32 +0200 Subject: [PATCH] fix savestate enet thread handling again --- Core/HLE/sceNetAdhoc.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceNetAdhoc.cpp b/Core/HLE/sceNetAdhoc.cpp index 59ffe9ae45..b81464ce7a 100644 --- a/Core/HLE/sceNetAdhoc.cpp +++ b/Core/HLE/sceNetAdhoc.cpp @@ -2000,12 +2000,14 @@ void __NetAdhocDoState(PointerWrap &p) { // Keeping the current flags instead left a state saved with adhocctl inited, loaded into a // fresh boot, failing every call with NOT_INITIALIZED; MGS Peace Walker retried // sceNetAdhocctlDisconnect forever when starting a cutscene. - if (netAdhocInited && !cur_netAdhocInited) { + if (netAdhocInited != cur_netAdhocInited) { if (aemuPostofficeEnetThread.joinable()) { aemuPostofficeEnetPumping = false; aemuPostofficeEnetThread.join(); } - SetupAdhocRelayMode(); + if (netAdhocInited) { + SetupAdhocRelayMode(); + } } if (netAdhocctlInited && !cur_netAdhocctlInited) { isAdhocctlNeedLogin = true;