Implement sceNpUtilCmpNpId

Will need a full implementation of emulated network to be "fully"
implemented.
This commit is contained in:
Raul Tambre 2016-04-09 18:07:30 +03:00
parent b073ead988
commit 8d2b6f6054
No known key found for this signature in database
GPG key ID: FC357D4861AC031E
2 changed files with 26 additions and 2 deletions

View file

@ -1445,9 +1445,16 @@ s32 sceNpSignalingGetPeerNetInfoResult()
return CELL_OK;
}
s32 sceNpUtilCmpNpId()
s32 sceNpUtilCmpNpId(vm::ptr<SceNpId> id1, vm::ptr<SceNpId> id2)
{
UNIMPLEMENTED_FUNC(sceNp);
sceNp.warning("sceNpUtilCmpNpId(id1=*0x%x, id2=*0x%x)", id1, id2);
// TODO: Improve the comparison.
if (strcmp(id1->handle.data, id2->handle.data) != 0)
{
return SCE_NP_UTIL_ERROR_NOT_MATCH;
}
return CELL_OK;
}