This commit is contained in:
Henrik Rydgård 2025-01-20 16:00:29 +01:00
parent 58f336f64d
commit 6f0d28e083
2 changed files with 5 additions and 3 deletions

View file

@ -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");

View file

@ -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);