mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Updated error code on sceNetGetLocalEtherAddr
This commit is contained in:
1 parent
5216433e0c
commit
6e50487fcd
1 file changed
+4
-2
+4
-2
@@ -676,8 +676,6 @@ static u32 sceWlanGetEtherAddr(u32 addrAddr) {
|
||||
return hleLogError(SCENET, SCE_KERNEL_ERROR_ILLEGAL_ADDR, "illegal address");
|
||||
}
|
||||
|
||||
// FIXME: Return 0x80410180 (pspnet[_core] error code?) when Adhocctl not connected to a group (ie. ADHOCCTL_STATE_DISCONNECTED)?
|
||||
|
||||
u8 *addr = Memory::GetPointer(addrAddr);
|
||||
if (PPSSPP_ID > 1) {
|
||||
Memory::Memset(addrAddr, PPSSPP_ID, 6);
|
||||
@@ -697,6 +695,10 @@ static u32 sceWlanGetEtherAddr(u32 addrAddr) {
|
||||
}
|
||||
|
||||
static u32 sceNetGetLocalEtherAddr(u32 addrAddr) {
|
||||
// FIXME: Return 0x80410180 (pspnet[_core] error code?) before successful attempt to Create/Connect/Join a Group? (ie. adhocctlCurrentMode == ADHOCCTL_MODE_NONE)
|
||||
if (adhocctlCurrentMode == ADHOCCTL_MODE_NONE)
|
||||
return hleLogDebug(SCENET, 0x80410180, "address not available?");
|
||||
|
||||
return sceWlanGetEtherAddr(addrAddr);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user