Skip to content

Commit 6623489

Browse files
Libs: Proper names for some functions (#4366)
* Add new ulobjmgr names * libScePad function * Clang
1 parent 5302e63 commit 6623489

2 files changed

Lines changed: 15 additions & 14 deletions

File tree

src/core/libraries/pad/pad.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,11 @@ int PS4_SYSV_ABI scePadResetOrientationForTracker() {
556556
return ORBIS_OK;
557557
}
558558

559+
int PS4_SYSV_ABI scePadSetAngularVelocityBiasCorrectionState() {
560+
LOG_ERROR(Lib_Pad, "(STUBBED) called");
561+
return ORBIS_OK;
562+
}
563+
559564
int PS4_SYSV_ABI scePadSetAngularVelocityDeadbandState(s32 handle, bool bEnable) {
560565
LOG_ERROR(Lib_Pad, "(STUBBED) called");
561566
return ORBIS_OK;
@@ -753,11 +758,6 @@ int PS4_SYSV_ABI scePadVirtualDeviceInsertData() {
753758
return ORBIS_OK;
754759
}
755760

756-
int PS4_SYSV_ABI Func_28B998C7D8A3DA1D() {
757-
LOG_ERROR(Lib_Pad, "(STUBBED) called");
758-
return ORBIS_OK;
759-
}
760-
761761
int PS4_SYSV_ABI Func_298D21481F94C9FA() {
762762
LOG_ERROR(Lib_Pad, "(STUBBED) called");
763763
return ORBIS_OK;
@@ -836,6 +836,8 @@ void RegisterLib(Core::Loader::SymbolsResolver* sym) {
836836
LIB_FUNCTION("+Yp6+orqf1M", "libScePad", 1, "libScePad", scePadResetLightBarAllByPortType);
837837
LIB_FUNCTION("rIZnR6eSpvk", "libScePad", 1, "libScePad", scePadResetOrientation);
838838
LIB_FUNCTION("jbAqAvLEP4A", "libScePad", 1, "libScePad", scePadResetOrientationForTracker);
839+
LIB_FUNCTION("KLmYx9ij2h0", "libScePad", 1, "libScePad",
840+
scePadSetAngularVelocityBiasCorrectionState);
839841
LIB_FUNCTION("r44mAxdSG+U", "libScePad", 1, "libScePad", scePadSetAngularVelocityDeadbandState);
840842
LIB_FUNCTION("ew647HuKi2Y", "libScePad", 1, "libScePad", scePadSetAutoPowerOffCount);
841843
LIB_FUNCTION("MbTt1EHYCTg", "libScePad", 1, "libScePad", scePadSetButtonRemappingInfo);
@@ -870,7 +872,6 @@ void RegisterLib(Core::Loader::SymbolsResolver* sym) {
870872
scePadVirtualDeviceDisableButtonRemapping);
871873
LIB_FUNCTION("LKXfw7VJYqg", "libScePad", 1, "libScePad", scePadVirtualDeviceGetRemoteSetting);
872874
LIB_FUNCTION("IWOyO5jKuZg", "libScePad", 1, "libScePad", scePadVirtualDeviceInsertData);
873-
LIB_FUNCTION("KLmYx9ij2h0", "libScePad", 1, "libScePad", Func_28B998C7D8A3DA1D);
874875
LIB_FUNCTION("KY0hSB+Uyfo", "libScePad", 1, "libScePad", Func_298D21481F94C9FA);
875876
LIB_FUNCTION("UeUUvNOgXKU", "libScePad", 1, "libScePad", Func_51E514BCD3A05CA5);
876877
LIB_FUNCTION("ickjfjk9okM", "libScePad", 1, "libScePad", Func_89C9237E393DA243);

src/core/libraries/ulobjmgr/ulobjmgr.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@
99

1010
namespace Libraries::Ulobjmgr {
1111

12-
s32 PS4_SYSV_ABI Func_046DBA8411A2365C(u64 arg0, s32 arg1, u32* arg2) {
12+
s32 PS4_SYSV_ABI _sceUlobjmgrRegisterObject(u64 arg0, s32 arg1, u32* arg2) {
1313
if (arg0 == 0 || arg1 == 0 || arg2 == nullptr) {
1414
return POSIX_EINVAL;
1515
}
1616
*arg2 = 0;
1717
return ORBIS_OK;
1818
}
1919

20-
s32 PS4_SYSV_ABI Func_1D9F50D9CFB8054E() {
21-
return ORBIS_OK;
22-
}
23-
24-
s32 PS4_SYSV_ABI Func_4A67FE7D435B94F7(u32 arg0) {
20+
s32 PS4_SYSV_ABI _sceUlobjmgrUnregisterObject(u32 arg0) {
2521
if (arg0 >= 0x4000) {
2622
return POSIX_EINVAL;
2723
}
2824
return ORBIS_OK;
2925
}
3026

27+
s32 PS4_SYSV_ABI Func_1D9F50D9CFB8054E() {
28+
return ORBIS_OK;
29+
}
30+
3131
s32 PS4_SYSV_ABI Func_4B07893BBB77A649(u64 arg0) {
3232
if (arg0 == 0) {
3333
return POSIX_EINVAL;
@@ -36,9 +36,9 @@ s32 PS4_SYSV_ABI Func_4B07893BBB77A649(u64 arg0) {
3636
}
3737

3838
void RegisterLib(Core::Loader::SymbolsResolver* sym) {
39-
LIB_FUNCTION("BG26hBGiNlw", "ulobjmgr", 1, "ulobjmgr", Func_046DBA8411A2365C);
39+
LIB_FUNCTION("BG26hBGiNlw", "ulobjmgr", 1, "ulobjmgr", _sceUlobjmgrRegisterObject);
40+
LIB_FUNCTION("Smf+fUNblPc", "ulobjmgr", 1, "ulobjmgr", _sceUlobjmgrUnregisterObject);
4041
LIB_FUNCTION("HZ9Q2c+4BU4", "ulobjmgr", 1, "ulobjmgr", Func_1D9F50D9CFB8054E);
41-
LIB_FUNCTION("Smf+fUNblPc", "ulobjmgr", 1, "ulobjmgr", Func_4A67FE7D435B94F7);
4242
LIB_FUNCTION("SweJO7t3pkk", "ulobjmgr", 1, "ulobjmgr", Func_4B07893BBB77A649);
4343
};
4444

0 commit comments

Comments
 (0)