-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SceCompanionUtil library + SceVoiceQoSCreateLocalEndpoint + SceVoiceQ…
…oSGetLocalEndpointAttribute + SceAudiodecTermLibrary (#194) * libSceCompanionUtil * sceVoiceQoSCreateLocalEndpoint + sceVoiceQoSGetLocalEndpointAttribute * SceAudiodecTermLibrary * + * + --------- Co-authored-by: red-prig <[email protected]>
- Loading branch information
1 parent
091deb5
commit d12d1fb
Showing
6 changed files
with
144 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
unit ps4_libSceCompanionUtil; | ||
|
||
{$mode ObjFPC}{$H+} | ||
|
||
interface | ||
|
||
uses | ||
ps4_program, | ||
ps4_libSceNet, | ||
Classes, | ||
SysUtils; | ||
|
||
const | ||
SCE_COMPANION_UTIL_ERROR_NO_EVENT=-2136145912; //0x80AD0008 | ||
|
||
type | ||
pSceCompanionUtilOptParam=^SceCompanionUtilOptParam; | ||
SceCompanionUtilOptParam=packed record | ||
thisSize :QWORD; | ||
workMemory :Pointer; | ||
workMemorySize:QWORD; | ||
end; | ||
|
||
pSceCompanionUtilDeviceInfo=^SceCompanionUtilDeviceInfo; | ||
SceCompanionUtilDeviceInfo=packed record | ||
userId :Integer; | ||
addr :SceNetSockaddrIn; | ||
reserved:array[0..235] of char; | ||
end; | ||
|
||
pSceCompanionUtilEvent=^SceCompanionUtilEvent; | ||
SceCompanionUtilEvent=packed record | ||
event:Integer; | ||
union:packed record | ||
case Byte of | ||
0:(deviceInfo:SceCompanionUtilDeviceInfo); | ||
1:(userId :Integer); | ||
2:(reserved :array[0..255] of char); | ||
end; | ||
end; | ||
|
||
implementation | ||
|
||
function ps4_sceCompanionUtilOptParamInitialize(pOptParam:SceCompanionUtilOptParam):Integer; SysV_ABI_CDecl; | ||
begin | ||
Result:=0; | ||
end; | ||
|
||
function ps4_sceCompanionUtilInitialize(const option:pSceCompanionUtilOptParam):Integer; SysV_ABI_CDecl; | ||
begin | ||
Result:=0; | ||
end; | ||
|
||
function ps4_sceCompanionUtilGetEvent(pEvent:pSceCompanionUtilEvent):Integer; SysV_ABI_CDecl; | ||
begin | ||
Result:=SCE_COMPANION_UTIL_ERROR_NO_EVENT; | ||
end; | ||
|
||
function Load_libSceCompanionUtil(Const name:RawByteString):TElf_node; | ||
var | ||
lib:PLIBRARY; | ||
begin | ||
Result:=TElf_node.Create; | ||
Result.pFileName:=name; | ||
|
||
lib:=Result._add_lib('libSceCompanionUtil'); | ||
lib^.set_proc($20F37F1514AB69F9,@ps4_sceCompanionUtilOptParamInitialize); | ||
lib^.set_proc($C5BD7194885FD106,@ps4_sceCompanionUtilInitialize); | ||
lib^.set_proc($704E4CB32D755A15,@ps4_sceCompanionUtilGetEvent); | ||
end; | ||
|
||
initialization | ||
ps4_app.RegistredPreLoad('libSceCompanionUtil.prx',@Load_libSceCompanionUtil); | ||
|
||
end. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters