diff --git a/kernel/ps4_libkernel.pas b/kernel/ps4_libkernel.pas index 24535146..d74e85d0 100644 --- a/kernel/ps4_libkernel.pas +++ b/kernel/ps4_libkernel.pas @@ -1541,6 +1541,8 @@ begin lib^.set_proc($959CC5792C4F974F,@ps4_pthread_setcancelstate); lib^.set_proc($D9D121BEF8E5AB7D,@ps4_pthread_setcanceltype); + lib^.set_proc($380996ABE3874A3C,@ps4_scePthreadSetcancelstate); + lib^.set_proc($B0225DF7D3E172DD,@ps4_scePthreadSetcanceltype); lib^.set_proc($128B51F1ADC049FE,@ps4_pthread_self); lib^.set_proc($688F8E782CFCC6B4,@ps4_scePthreadSelf); diff --git a/kernel/ps4_pthread.pas b/kernel/ps4_pthread.pas index 17a02e5c..1995f733 100644 --- a/kernel/ps4_pthread.pas +++ b/kernel/ps4_pthread.pas @@ -34,6 +34,8 @@ function ps4_scePthreadCancel(_pthread:pthread):Integer; SysV_ABI_CDecl; function ps4_pthread_setcancelstate(state:Integer;oldstate:PInteger):Integer; SysV_ABI_CDecl; function ps4_pthread_setcanceltype (_type:Integer;oldtype:PInteger):Integer; SysV_ABI_CDecl; +function ps4_scePthreadSetcancelstate(state:Integer;oldState:PInteger):Integer; SysV_ABI_CDecl; +function ps4_scePthreadSetcanceltype(_type:Integer;oldType:PInteger):Integer; SysV_ABI_CDecl; function ps4_pthread_self():pthread; SysV_ABI_CDecl; function ps4_scePthreadSelf():pthread; SysV_ABI_CDecl; @@ -515,6 +517,16 @@ begin end; end; +function ps4_scePthreadSetcancelstate(state:Integer;oldState:PInteger):Integer; SysV_ABI_CDecl; +begin + Result:=px2sce(ps4_pthread_setcancelstate(state,oldState)); +end; + +function ps4_scePthreadSetcanceltype(_type:Integer;oldType:PInteger):Integer; SysV_ABI_CDecl; +begin + Result:=px2sce(ps4_pthread_setcanceltype(_type,oldType)); +end; + function ps4_pthread_self():pthread; SysV_ABI_CDecl; begin Result:=tcb_thread;