mirror of https://github.com/red-prig/fpPS4.git
getargc, getargv
This commit is contained in:
parent
1cefb38b92
commit
4267b96281
|
@ -689,6 +689,19 @@ begin
|
|||
//ru_nivcsw
|
||||
end;
|
||||
|
||||
function ps4_getargc:Integer; SysV_ABI_CDecl;
|
||||
begin
|
||||
Result:=1;
|
||||
end;
|
||||
|
||||
const
|
||||
g_argv:array[0..1] of PChar=('eboot.bin',nil);
|
||||
|
||||
function ps4_getargv:PPChar; SysV_ABI_CDecl;
|
||||
begin
|
||||
Result:=@g_argv;
|
||||
end;
|
||||
|
||||
{$I libsysmodule.inc}
|
||||
|
||||
function ps4_sceSysmoduleLoadModule(id:Word):Integer; SysV_ABI_CDecl;
|
||||
|
@ -773,6 +786,9 @@ begin
|
|||
|
||||
lib^.set_proc($8479594149E5C523,@ps4_getrusage);
|
||||
|
||||
lib^.set_proc($88A24C5AB02E98F1,@ps4_getargc);
|
||||
lib^.set_proc($1499A09664CC76BE,@ps4_getargv);
|
||||
|
||||
//signal
|
||||
|
||||
lib^.set_proc($5644C0B2B643709D,@ps4_sigfillset);
|
||||
|
|
Loading…
Reference in New Issue