Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ordinary205 committed Apr 2, 2024
1 parent e881fd0 commit 7a75258
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 55 deletions.
4 changes: 3 additions & 1 deletion src/ajm/ps4_libsceajm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,9 @@ function ps4_sceAjmBatchJobControlBufferRa(

end;

procedure FixDataInput(pBatchPosition:Pointer;pDataInput:Pointer;szDataInputSize:QWORD);
procedure FixDataInput(const pBatchPosition:Pointer;
const pDataInput:Pointer;
const szDataInputSize:QWORD);
begin
if PQWORD(pBatchPosition)^ and (SCE_AJM_FLAG_SIDEBAND_STREAM)<>0 then
begin
Expand Down
33 changes: 32 additions & 1 deletion src/ps4_libscedialogs.pas
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,23 @@ function ps4_sceInvitationDialogUpdateStatus():Integer; SysV_ABI_CDecl;

//

function ps4_sceWebBrowserDialogUpdateStatus():Integer; SysV_ABI_CDecl;
begin
Result:=0;
end;

function ps4_sceWebBrowserDialogGetStatus():Integer; SysV_ABI_CDecl;
begin
Result:=0;
end;

function ps4_sceWebBrowserDialogTerminate():Integer; SysV_ABI_CDecl;
begin
Result:=0;
end;

//

function Load_libSceCommonDialog(Const name:RawByteString):TElf_node;
var
lib:PLIBRARY;
Expand Down Expand Up @@ -812,6 +829,19 @@ function Load_libSceInvitationDialog(Const name:RawByteString):TElf_node;
lib^.set_proc($F7E83D88EABEEE48,@ps4_sceInvitationDialogUpdateStatus);
end;

function Load_libSceWebBrowserDialog(Const name:RawByteString):TElf_node;
var
lib:PLIBRARY;
begin
Result:=TElf_node.Create;
Result.pFileName:=name;

lib:=Result._add_lib('libSceWebBrowserDialog');
lib^.set_proc($875751FEDE484A08,@ps4_sceWebBrowserDialogUpdateStatus);
lib^.set_proc($0854C6E9AF138CE5,@ps4_sceWebBrowserDialogGetStatus);
lib^.set_proc($A1C1EDC81C077F2B,@ps4_sceWebBrowserDialogTerminate);
end;

initialization
ps4_app.RegistredPreLoad('libSceCommonDialog.prx' ,@Load_libSceCommonDialog);
ps4_app.RegistredPreLoad('libSceErrorDialog.prx' ,@Load_libSceErrorDialog);
Expand All @@ -825,7 +855,8 @@ initialization
ps4_app.RegistredPreLoad('libSceLoginDialog.prx' ,@Load_libSceLoginDialog);
ps4_app.RegistredPreLoad('libSceHmdSetupDialog.prx' ,@Load_libSceHmdSetupDialog);
ps4_app.RegistredPreLoad('libSceNpFriendListDialog.prx' ,@Load_libSceNpFriendListDialog);
ps4_app.RegistredPreLoad('libSceInvitationDialog.prx' ,@Load_libSceInvitationDialog);
ps4_app.RegistredPreLoad('libSceInvitationDialog.prx' ,@Load_libSceInvitationDialog);
ps4_app.RegistredPreLoad('libSceWebBrowserDialog.prx' ,@Load_libSceWebBrowserDialog);

end.

53 changes: 0 additions & 53 deletions src/ps4_libscewebbrowserdialog.pas

This file was deleted.

0 comments on commit 7a75258

Please sign in to comment.