sceNpFriendlist: some improvements

This commit is contained in:
Megamouse 2021-10-11 23:43:31 +02:00
parent 8f328b2624
commit 3832d4fa1c

View File

@ -2246,9 +2246,11 @@ error_code sceNpFriendlist(vm::ptr<SceNpFriendlistResultHandler> resultHandler,
if (!nph.is_NP_init)
{
return SCE_NP_CUSTOM_MENU_ERROR_NOT_INITIALIZED;
return SCE_NP_FRIENDLIST_ERROR_NOT_INITIALIZED;
}
// TODO: SCE_NP_FRIENDLIST_ERROR_BUSY
if (!resultHandler)
{
return SCE_NP_FRIENDLIST_ERROR_INVALID_ARGUMENT;
@ -2265,9 +2267,11 @@ error_code sceNpFriendlistCustom(SceNpFriendlistCustomOptions options, vm::ptr<S
if (!nph.is_NP_init)
{
return SCE_NP_CUSTOM_MENU_ERROR_NOT_INITIALIZED;
return SCE_NP_FRIENDLIST_ERROR_NOT_INITIALIZED;
}
// TODO: SCE_NP_FRIENDLIST_ERROR_BUSY
if (!resultHandler)
{
return SCE_NP_FRIENDLIST_ERROR_INVALID_ARGUMENT;
@ -2284,9 +2288,11 @@ error_code sceNpFriendlistAbortGui()
if (!nph.is_NP_init)
{
return SCE_NP_CUSTOM_MENU_ERROR_NOT_INITIALIZED;
return SCE_NP_FRIENDLIST_ERROR_NOT_INITIALIZED;
}
// TODO: abort friendlist GUI interaction
return CELL_OK;
}