sys_sm_get_ext_event2 stub

This commit is contained in:
clienthax 2021-04-25 16:05:38 +01:00 committed by Megamouse
parent 1e9afdc289
commit 1e605de31e
1 changed files with 15 additions and 1 deletions

View File

@ -24,7 +24,21 @@ error_code sys_sm_get_ext_event2(vm::ptr<u64> a1, vm::ptr<u64> a2, vm::ptr<u64>
{
sys_sm.todo("sys_sm_get_ext_event2(a1=*0x%x, a2=*0x%x, a3=*0x%x, a4=*0x%x, a4=0x%xll", a1, a2, a3, a4);
return CELL_OK;
if (a4 != 0 && a4 != 1)
{
return CELL_EINVAL;
}
// a1 == 7 - 'console too hot, restart'
// a2 looks to be used if a1 is either 5 or 3?
// a3 looks to be ignored in vsh
if (a1) *a1 = 0; else return CELL_EFAULT;
if (a2) *a2 = 0; else return CELL_EFAULT;
if (a3) *a3 = 0; else return CELL_EFAULT;
// eagain for no event
return not_an_error(CELL_EAGAIN);
}
error_code sys_sm_shutdown(u16 op, vm::ptr<void> param, u64 size)