diff --git a/Core/HLE/sceNet.cpp b/Core/HLE/sceNet.cpp index dc8c0ef243..a2255f1e64 100644 --- a/Core/HLE/sceNet.cpp +++ b/Core/HLE/sceNet.cpp @@ -1317,6 +1317,10 @@ int NetApctl_GetState() { return netApctlState; } +bool __NetApctlConnected() { + return netApctlState >= PSP_NET_APCTL_STATE_GOT_IP; +} + static int sceNetApctlGetState(u32 pStateAddr) { //if (!netApctlInited) return hleLogError(Log::sceNet, ERROR_NET_APCTL_NOT_IN_BSS, "apctl not in bss"); diff --git a/Core/HLE/sceNet.h b/Core/HLE/sceNet.h index cce03f278d..f5abfebd48 100644 --- a/Core/HLE/sceNet.h +++ b/Core/HLE/sceNet.h @@ -127,9 +127,7 @@ void __NetDoState(PointerWrap &p); int NetApctl_GetState(); -inline bool __NetApctlConnected() { - return netApctlState >= PSP_NET_APCTL_STATE_GOT_IP; -} +bool __NetApctlConnected(); int sceNetApctlConnect(int connIndex);