Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SceLncUtilInitialize + SceNpCommerceDialogGetStatus #199

Merged
merged 3 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions fpPS4.lpr
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
ps4_libSceAjm,
ps4_libSceMouse,
ps4_libSceIme,
ps4_libSceLncUtil,
ps4_libSceMove,
ps4_libSceMoveTracker,
ps4_libScePlayGo,
Expand Down
6 changes: 6 additions & 0 deletions src/ps4_libscedialogs.pas
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,11 @@ function ps4_sceNpCommerceDialogUpdateStatus():Integer; SysV_ABI_CDecl;
Result:=status_commerce_dialog;
end;

function ps4_sceNpCommerceDialogGetStatus():Integer; SysV_ABI_CDecl;
begin
Result:=status_commerce_dialog;
end;

type
pSceNpCommerceDialogResult=^SceNpCommerceDialogResult;
SceNpCommerceDialogResult=packed record
Expand Down Expand Up @@ -654,6 +659,7 @@ function Load_libSceNpCommerce(Const name:RawByteString):TElf_node;
lib^.set_proc($D1A4766969906A5E,@ps4_sceNpCommerceDialogInitialize);
lib^.set_proc($0DF4820D10371236,@ps4_sceNpCommerceDialogOpen);
lib^.set_proc($2D1E5CC0530C0951,@ps4_sceNpCommerceDialogUpdateStatus);
lib^.set_proc($0826C2FA5AAABC5D,@ps4_sceNpCommerceDialogGetStatus);
lib^.set_proc($AF8D9B59C41BB596,@ps4_sceNpCommerceDialogGetResult);
lib^.set_proc($9BF23DD806F9D16F,@ps4_sceNpCommerceDialogTerminate);
lib^.set_proc($0C79B0B1AE92F137,@ps4_sceNpCommerceShowPsStoreIcon);
Expand Down
34 changes: 34 additions & 0 deletions src/ps4_libscelncutil.pas
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
unit ps4_libSceLncUtil;

{$mode ObjFPC}{$H+}

interface

uses
ps4_program,
Classes,
SysUtils;

implementation

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

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

lib:=Result._add_lib('libSceLncUtil');
lib^.set_proc($7FF43C35DDF71417,@ps4_sceLncUtilInitialize);
end;

initialization
ps4_app.RegistredPreLoad('libSceLncUtil.prx',@Load_libSceLncUtil);

end.

21 changes: 0 additions & 21 deletions src/ps4_libscesystemservice.pas
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,6 @@ implementation
end;
end;

//

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

//

function ps4_sceSystemServiceParamGetInt(paramId:Integer;value:Pinteger):Integer; SysV_ABI_CDecl;
var
info:DWORD;
Expand Down Expand Up @@ -458,18 +449,6 @@ function ps4_sceSystemServiceDisableSuspendNotification:Integer; SysV_ABI_CDecl;

//

function Load_libSceLncUtil(Const name:RawByteString):TElf_node;
var
lib:PLIBRARY;
begin
Result:=TElf_node.Create;
Result.pFileName:=name;
lib:=Result._add_lib('libSceLncUtil');
lib^.set_proc($7FF43C35DDF71417,@ps4_sceLncUtilInitialize);
end;

//

function Load_libSceSystemService(Const name:RawByteString):TElf_node;
var
lib:PLIBRARY;
Expand Down
Loading