This commit is contained in:
Pavel 2023-11-08 17:05:47 +03:00
parent fea4a0e3c8
commit 73e8b0cb7c
2 changed files with 14 additions and 13 deletions

View File

@ -22,6 +22,7 @@ const
SCE_HTTP_ERROR_OUT_OF_MEMORY=$80431022; SCE_HTTP_ERROR_OUT_OF_MEMORY=$80431022;
SCE_HTTP_ERROR_INVALID_VALUE=$804311fe; SCE_HTTP_ERROR_INVALID_VALUE=$804311fe;
SCE_HTTP_ERROR_INVALID_URL =$80433060; SCE_HTTP_ERROR_INVALID_URL =$80433060;
SCE_HTTP_ERROR_NETWORK =$80431063;
type type
SceHttpUriElement=packed record SceHttpUriElement=packed record

View File

@ -12,6 +12,14 @@ uses
implementation implementation
const
SCE_NET_EINVAL =22;
SCE_NET_ENOSPC =28;
SCE_NET_EAFNOSUPPORT=47;
SCE_NET_EHOSTUNREACH=65;
threadvar threadvar
sce_net_errno:Integer; sce_net_errno:Integer;
@ -103,25 +111,25 @@ end;
function ps4_sceNetPoolCreate(name:PChar;size,flags:Integer):Integer; SysV_ABI_CDecl; function ps4_sceNetPoolCreate(name:PChar;size,flags:Integer):Integer; SysV_ABI_CDecl;
begin begin
Writeln('sceNetPoolCreate:',name,':',size,':',flags); //Writeln('sceNetPoolCreate:',name,':',size,':',flags);
Result:=2; // iNetLibId Result:=2; // iNetLibId
end; end;
function ps4_sceNetPoolDestroy(memid:Integer):Integer; SysV_ABI_CDecl; function ps4_sceNetPoolDestroy(memid:Integer):Integer; SysV_ABI_CDecl;
begin begin
Writeln('sceNetPoolDestroy:',memid); //Writeln('sceNetPoolDestroy:',memid);
Result:=0; Result:=0;
end; end;
function ps4_sceNetResolverCreate(name:PChar;memid,flags:Integer):Integer; SysV_ABI_CDecl; function ps4_sceNetResolverCreate(name:PChar;memid,flags:Integer):Integer; SysV_ABI_CDecl;
begin begin
Writeln('sceNetResolverCreate:',name,':',memid); //Writeln('sceNetResolverCreate:',name,':',memid);
Result:=111; Result:=111;
end; end;
function ps4_sceNetEpollCreate(name:PChar;flags:Integer):Integer; SysV_ABI_CDecl; function ps4_sceNetEpollCreate(name:PChar;flags:Integer):Integer; SysV_ABI_CDecl;
begin begin
Writeln('sceNetEpollCreate:',name,':',flags); //Writeln('sceNetEpollCreate:',name,':',flags);
Result:=3; Result:=3;
end; end;
@ -129,10 +137,6 @@ const
AF_INET = 2; AF_INET = 2;
AF_INET6=28; AF_INET6=28;
SCE_NET_EINVAL =22;
SCE_NET_ENOSPC =28;
SCE_NET_EAFNOSUPPORT=47;
function ps4_sceNetInetPton(af:Integer; function ps4_sceNetInetPton(af:Integer;
src:Pchar; src:Pchar;
dst:Pointer):Integer; SysV_ABI_CDecl; dst:Pointer):Integer; SysV_ABI_CDecl;
@ -354,11 +358,7 @@ end;
function ps4_sceNetResolverStartAton(rid:Integer; const addr:pSceNetInAddr; hostname:PChar; hostname_len:Integer; timeout:Integer; retry:Integer; flags:Integer):Integer; SysV_ABI_CDecl; function ps4_sceNetResolverStartAton(rid:Integer; const addr:pSceNetInAddr; hostname:PChar; hostname_len:Integer; timeout:Integer; retry:Integer; flags:Integer):Integer; SysV_ABI_CDecl;
begin begin
if (hostname<>nil) then Exit(_set_net_errno(SCE_NET_EHOSTUNREACH));
begin
FillChar(hostname^,hostname_len,0);
end;
Result:=0;
end; end;
function ps4_sceNetResolverDestroy(rid:Integer):Integer; SysV_ABI_CDecl; function ps4_sceNetResolverDestroy(rid:Integer):Integer; SysV_ABI_CDecl;