SceGnmFindResourcesPublic + SceGnmRegisterOwnerForSystem (#187)

* sceGnmFindResourcesPublic + sceGnmRegisterOwnerForSystem

* +

* +

* +

* +

---------

Co-authored-by: red-prig <vdpasha@mail.ru>
This commit is contained in:
Ordinary205 2024-02-05 21:29:44 +04:00 committed by GitHub
parent 7a4119ad19
commit daa2ecbbad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1978,17 +1978,39 @@ end;
const const
SCE_GNM_ERROR_FAILURE=-1897004801; // $8eee00ff; SCE_GNM_ERROR_FAILURE=-1897004801; // $8eee00ff;
type
FoundResourceCallback=function(
resourceHandle:DWORD;
ownerHandle:DWORD;
callbackData:QWORD
):Integer; SysV_ABI_CDecl;
function ps4_sceGnmGetResourceRegistrationBuffers({params?}):Int64; SysV_ABI_CDecl; function ps4_sceGnmGetResourceRegistrationBuffers({params?}):Int64; SysV_ABI_CDecl;
begin begin
Result:=SCE_GNM_ERROR_FAILURE; Result:=SCE_GNM_ERROR_FAILURE;
end; end;
function ps4_sceGnmFindResourcesPublic(const pTestArea:Pointer;
testSizeInBytes:QWORD;
foundResourceCallback:FoundResourceCallback;
callbackData:QWORD):Integer; SysV_ABI_CDecl;
begin
Writeln('sceGnmFindResourcesPublic:',callbackData);
Result:=SCE_GNM_ERROR_FAILURE;
end;
function ps4_sceGnmRegisterOwner(pOwnerHandle:PInteger;ownerName:Pchar):Integer; SysV_ABI_CDecl; function ps4_sceGnmRegisterOwner(pOwnerHandle:PInteger;ownerName:Pchar):Integer; SysV_ABI_CDecl;
begin begin
Writeln('sceGnmRegisterOwner:',ownerName); Writeln('sceGnmRegisterOwner:',ownerName);
Result:=SCE_GNM_ERROR_FAILURE; Result:=SCE_GNM_ERROR_FAILURE;
end; end;
function ps4_sceGnmRegisterOwnerForSystem(pOwnerHandle:PInteger;ownerName:Pchar):Integer; SysV_ABI_CDecl;
begin
Writeln('sceGnmRegisterOwnerForSystem:',ownerName);
Result:=SCE_GNM_ERROR_FAILURE;
end;
function ps4_sceGnmRegisterResource(pResourceHandle:PInteger; //ResourceHandle function ps4_sceGnmRegisterResource(pResourceHandle:PInteger; //ResourceHandle
ownerHandle:Integer; //OwnerHandle ownerHandle:Integer; //OwnerHandle
pMemory:Pointer; pMemory:Pointer;
@ -2243,7 +2265,9 @@ begin
lib^.set_proc($6F4F0082D3E51CF8,@ps4_sceGnmAreSubmitsAllowed); lib^.set_proc($6F4F0082D3E51CF8,@ps4_sceGnmAreSubmitsAllowed);
lib^.set_proc($78B41B36C29E4E45,@ps4_sceGnmGetResourceRegistrationBuffers); lib^.set_proc($78B41B36C29E4E45,@ps4_sceGnmGetResourceRegistrationBuffers);
lib^.set_proc($E0CBFD397CA9046F,@ps4_sceGnmFindResourcesPublic);
lib^.set_proc($645A8A165DB768C7,@ps4_sceGnmRegisterOwner); lib^.set_proc($645A8A165DB768C7,@ps4_sceGnmRegisterOwner);
lib^.set_proc($8FA99242CDD481A6,@ps4_sceGnmRegisterOwnerForSystem);
lib^.set_proc($9EF1307D8008993B,@ps4_sceGnmRegisterResource); lib^.set_proc($9EF1307D8008993B,@ps4_sceGnmRegisterResource);
lib^.set_proc($93C11792120FFA53,@ps4_sceGnmUnregisterResource); lib^.set_proc($93C11792120FFA53,@ps4_sceGnmUnregisterResource);
lib^.set_proc($7E12B0095563F679,@ps4_sceGnmUnregisterOwnerAndResources); lib^.set_proc($7E12B0095563F679,@ps4_sceGnmUnregisterOwnerAndResources);