mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
cellSysutilAvc: fix cellSysutilAvcEnumPlayers error check
This commit is contained in:
parent
d13acdb484
commit
00e5d54be7
@ -63,9 +63,19 @@ error_code cellSysutilAvcEnumPlayers(vm::ptr<SceNpId> players_id, vm::ptr<s32> p
|
|||||||
{
|
{
|
||||||
cellSysutil.todo("cellSysutilAvcEnumPlayers(players_id=*0x%x, players_num=*0x%x)", players_id, players_num);
|
cellSysutil.todo("cellSysutilAvcEnumPlayers(players_id=*0x%x, players_num=*0x%x)", players_id, players_num);
|
||||||
|
|
||||||
if (!players_id || !players_num)
|
if (!players_num)
|
||||||
return CELL_AVC_ERROR_INVALID_ARGUMENT;
|
return CELL_AVC_ERROR_INVALID_ARGUMENT;
|
||||||
|
|
||||||
|
if (players_id)
|
||||||
|
{
|
||||||
|
// Fill players_id with players_num participants
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Return number of participants
|
||||||
|
*players_num = 0;
|
||||||
|
}
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user