Skip to content

Commit

Permalink
libSceGnmDriverResourceRegistration: sceGnmFindResources, sceGnmGetRe…
Browse files Browse the repository at this point in the history
…sourceRegistrationBuffers, sceGnmRegisterOwnerForSystem
  • Loading branch information
red-prig committed Feb 5, 2024
1 parent daa2ecb commit 2d97b84
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/ps4_libscegnmdriver.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1999,6 +1999,15 @@ function ps4_sceGnmFindResourcesPublic(const pTestArea:Pointer;
Result:=SCE_GNM_ERROR_FAILURE;
end;

function ps4_sceGnmFindResources(const pTestArea:Pointer;
testSizeInBytes:QWORD;
foundResourceCallback:FoundResourceCallback;
callbackData:QWORD):Integer; SysV_ABI_CDecl;
begin
Writeln('sceGnmFindResources:',callbackData);
Result:=SCE_GNM_ERROR_FAILURE;
end;

function ps4_sceGnmRegisterOwner(pOwnerHandle:PInteger;ownerName:Pchar):Integer; SysV_ABI_CDecl;
begin
Writeln('sceGnmRegisterOwner:',ownerName);
Expand Down Expand Up @@ -2280,6 +2289,12 @@ function Load_libSceGnmDriver(Const name:RawByteString):TElf_node;

//nop nid:libSceGnmDriver:DBDA0ABCA5F3119A:sceGnmMapComputeQueue

lib:=Result._add_lib('libSceGnmDriverResourceRegistration');

lib^.set_proc($BDB711E0A7A7E800,@ps4_sceGnmFindResources);
lib^.set_proc($78B41B36C29E4E45,@ps4_sceGnmGetResourceRegistrationBuffers);
lib^.set_proc($8FA99242CDD481A6,@ps4_sceGnmRegisterOwnerForSystem);

libGnm_init:=2; //end load
end;

Expand Down

0 comments on commit 2d97b84

Please sign in to comment.