mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-09 13:19:00 +00:00
Add stubbed libSceNpProfileDialog library (#3411)
* Stubbed library * Silence sceNpProfileDialogUpdateStatus * the loathsome clang-formatter
This commit is contained in:
@@ -594,6 +594,8 @@ set(NP_LIBS src/core/libraries/np_common/np_common.cpp
|
|||||||
src/core/libraries/np_party/np_party_error.h
|
src/core/libraries/np_party/np_party_error.h
|
||||||
src/core/libraries/np_auth/np_auth.cpp
|
src/core/libraries/np_auth/np_auth.cpp
|
||||||
src/core/libraries/np_auth/np_auth.h
|
src/core/libraries/np_auth/np_auth.h
|
||||||
|
src/core/libraries/np_profiledialog/np_profiledialog.cpp
|
||||||
|
src/core/libraries/np_profiledialog/np_profiledialog.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set(ZLIB_LIB src/core/libraries/zlib/zlib.cpp
|
set(ZLIB_LIB src/core/libraries/zlib/zlib.cpp
|
||||||
|
|||||||
@@ -108,6 +108,7 @@ bool ParseFilterRule(Filter& instance, Iterator begin, Iterator end) {
|
|||||||
SUB(Lib, NpScore) \
|
SUB(Lib, NpScore) \
|
||||||
SUB(Lib, NpTrophy) \
|
SUB(Lib, NpTrophy) \
|
||||||
SUB(Lib, NpWebApi) \
|
SUB(Lib, NpWebApi) \
|
||||||
|
SUB(Lib, NpProfileDialog) \
|
||||||
SUB(Lib, Screenshot) \
|
SUB(Lib, Screenshot) \
|
||||||
SUB(Lib, LibCInternal) \
|
SUB(Lib, LibCInternal) \
|
||||||
SUB(Lib, AppContent) \
|
SUB(Lib, AppContent) \
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ enum class Class : u8 {
|
|||||||
Lib_NpScore, ///< The LibSceNpScore implementation
|
Lib_NpScore, ///< The LibSceNpScore implementation
|
||||||
Lib_NpTrophy, ///< The LibSceNpTrophy implementation
|
Lib_NpTrophy, ///< The LibSceNpTrophy implementation
|
||||||
Lib_NpWebApi, ///< The LibSceWebApi implementation
|
Lib_NpWebApi, ///< The LibSceWebApi implementation
|
||||||
|
Lib_NpProfileDialog, ///< The LibSceNpProfileDialog implementation
|
||||||
Lib_Screenshot, ///< The LibSceScreenshot implementation
|
Lib_Screenshot, ///< The LibSceScreenshot implementation
|
||||||
Lib_LibCInternal, ///< The LibCInternal implementation.
|
Lib_LibCInternal, ///< The LibCInternal implementation.
|
||||||
Lib_AppContent, ///< The LibSceAppContent implementation.
|
Lib_AppContent, ///< The LibSceAppContent implementation.
|
||||||
@@ -84,7 +85,7 @@ enum class Class : u8 {
|
|||||||
Lib_Jpeg, ///< The LibSceJpeg implementation.
|
Lib_Jpeg, ///< The LibSceJpeg implementation.
|
||||||
Lib_PlayGo, ///< The LibScePlayGo implementation.
|
Lib_PlayGo, ///< The LibScePlayGo implementation.
|
||||||
Lib_PlayGoDialog, ///< The LibScePlayGoDialog implementation.
|
Lib_PlayGoDialog, ///< The LibScePlayGoDialog implementation.
|
||||||
Lib_Random, ///< The libSceRandom implementation.
|
Lib_Random, ///< The LibSceRandom implementation.
|
||||||
Lib_Usbd, ///< The LibSceUsbd implementation.
|
Lib_Usbd, ///< The LibSceUsbd implementation.
|
||||||
Lib_Ajm, ///< The LibSceAjm implementation.
|
Lib_Ajm, ///< The LibSceAjm implementation.
|
||||||
Lib_ErrorDialog, ///< The LibSceErrorDialog implementation.
|
Lib_ErrorDialog, ///< The LibSceErrorDialog implementation.
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
#include "core/libraries/np_common/np_common.h"
|
#include "core/libraries/np_common/np_common.h"
|
||||||
#include "core/libraries/np_manager/np_manager.h"
|
#include "core/libraries/np_manager/np_manager.h"
|
||||||
#include "core/libraries/np_party/np_party.h"
|
#include "core/libraries/np_party/np_party.h"
|
||||||
|
#include "core/libraries/np_profiledialog/np_profiledialog.h"
|
||||||
#include "core/libraries/np_score/np_score.h"
|
#include "core/libraries/np_score/np_score.h"
|
||||||
#include "core/libraries/np_trophy/np_trophy.h"
|
#include "core/libraries/np_trophy/np_trophy.h"
|
||||||
#include "core/libraries/np_web_api/np_web_api.h"
|
#include "core/libraries/np_web_api/np_web_api.h"
|
||||||
@@ -95,6 +96,7 @@ void InitHLELibs(Core::Loader::SymbolsResolver* sym) {
|
|||||||
Libraries::NpScore::RegisterLib(sym);
|
Libraries::NpScore::RegisterLib(sym);
|
||||||
Libraries::NpTrophy::RegisterLib(sym);
|
Libraries::NpTrophy::RegisterLib(sym);
|
||||||
Libraries::NpWebApi::RegisterLib(sym);
|
Libraries::NpWebApi::RegisterLib(sym);
|
||||||
|
Libraries::NpProfileDialog::RegisterLib(sym);
|
||||||
Libraries::NpAuth::RegisterLib(sym);
|
Libraries::NpAuth::RegisterLib(sym);
|
||||||
Libraries::ScreenShot::RegisterLib(sym);
|
Libraries::ScreenShot::RegisterLib(sym);
|
||||||
Libraries::AppContent::RegisterLib(sym);
|
Libraries::AppContent::RegisterLib(sym);
|
||||||
|
|||||||
72
src/core/libraries/np_profiledialog/np_profiledialog.cpp
Normal file
72
src/core/libraries/np_profiledialog/np_profiledialog.cpp
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2025 shadPS4 Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#include "common/logging/log.h"
|
||||||
|
#include "core/libraries/error_codes.h"
|
||||||
|
#include "core/libraries/libs.h"
|
||||||
|
#include "core/libraries/np_profiledialog/np_profiledialog.h"
|
||||||
|
|
||||||
|
namespace Libraries::NpProfileDialog {
|
||||||
|
|
||||||
|
s32 PS4_SYSV_ABI sceNpProfileDialogOpen() {
|
||||||
|
LOG_ERROR(Lib_NpProfileDialog, "(STUBBED) called");
|
||||||
|
return ORBIS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
s32 PS4_SYSV_ABI sceNpProfileDialogClose() {
|
||||||
|
LOG_ERROR(Lib_NpProfileDialog, "(STUBBED) called");
|
||||||
|
return ORBIS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
s32 PS4_SYSV_ABI sceNpProfileDialogGetResult() {
|
||||||
|
LOG_ERROR(Lib_NpProfileDialog, "(STUBBED) called");
|
||||||
|
return ORBIS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
s32 PS4_SYSV_ABI sceNpProfileDialogGetStatus() {
|
||||||
|
LOG_ERROR(Lib_NpProfileDialog, "(STUBBED) called");
|
||||||
|
return ORBIS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
s32 PS4_SYSV_ABI sceNpProfileDialogInitialize() {
|
||||||
|
LOG_ERROR(Lib_NpProfileDialog, "(STUBBED) called");
|
||||||
|
return ORBIS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
s32 PS4_SYSV_ABI sceNpProfileDialogOpenA() {
|
||||||
|
LOG_ERROR(Lib_NpProfileDialog, "(STUBBED) called");
|
||||||
|
return ORBIS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
s32 PS4_SYSV_ABI sceNpProfileDialogTerminate() {
|
||||||
|
LOG_ERROR(Lib_NpProfileDialog, "(STUBBED) called");
|
||||||
|
return ORBIS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
s32 PS4_SYSV_ABI sceNpProfileDialogUpdateStatus() {
|
||||||
|
LOG_DEBUG(Lib_NpProfileDialog, "(STUBBED) called");
|
||||||
|
return ORBIS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
void RegisterLib(Core::Loader::SymbolsResolver* sym) {
|
||||||
|
LIB_FUNCTION("uj9Cz7Tk0cc", "libSceNpProfileDialogCompat", 1, "libSceNpProfileDialog", 1, 1,
|
||||||
|
sceNpProfileDialogOpen);
|
||||||
|
LIB_FUNCTION("wkwjz0Xdo2A", "libSceNpProfileDialog", 1, "libSceNpProfileDialog", 1, 1,
|
||||||
|
sceNpProfileDialogClose);
|
||||||
|
LIB_FUNCTION("8rhLl1-0W-o", "libSceNpProfileDialog", 1, "libSceNpProfileDialog", 1, 1,
|
||||||
|
sceNpProfileDialogGetResult);
|
||||||
|
LIB_FUNCTION("3BqoiFOjSsk", "libSceNpProfileDialog", 1, "libSceNpProfileDialog", 1, 1,
|
||||||
|
sceNpProfileDialogGetStatus);
|
||||||
|
LIB_FUNCTION("Lg+NCE6pTwQ", "libSceNpProfileDialog", 1, "libSceNpProfileDialog", 1, 1,
|
||||||
|
sceNpProfileDialogInitialize);
|
||||||
|
LIB_FUNCTION("uj9Cz7Tk0cc", "libSceNpProfileDialog", 1, "libSceNpProfileDialog", 1, 1,
|
||||||
|
sceNpProfileDialogOpen);
|
||||||
|
LIB_FUNCTION("nrQRlLKzdwE", "libSceNpProfileDialog", 1, "libSceNpProfileDialog", 1, 1,
|
||||||
|
sceNpProfileDialogOpenA);
|
||||||
|
LIB_FUNCTION("0Sp9vJcB1-w", "libSceNpProfileDialog", 1, "libSceNpProfileDialog", 1, 1,
|
||||||
|
sceNpProfileDialogTerminate);
|
||||||
|
LIB_FUNCTION("haVZE9FgKqE", "libSceNpProfileDialog", 1, "libSceNpProfileDialog", 1, 1,
|
||||||
|
sceNpProfileDialogUpdateStatus);
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace Libraries::NpProfileDialog
|
||||||
24
src/core/libraries/np_profiledialog/np_profiledialog.h
Normal file
24
src/core/libraries/np_profiledialog/np_profiledialog.h
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2025 shadPS4 Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "common/types.h"
|
||||||
|
|
||||||
|
namespace Core::Loader {
|
||||||
|
class SymbolsResolver;
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace Libraries::NpProfileDialog {
|
||||||
|
|
||||||
|
s32 PS4_SYSV_ABI sceNpProfileDialogOpen();
|
||||||
|
s32 PS4_SYSV_ABI sceNpProfileDialogClose();
|
||||||
|
s32 PS4_SYSV_ABI sceNpProfileDialogGetResult();
|
||||||
|
s32 PS4_SYSV_ABI sceNpProfileDialogGetStatus();
|
||||||
|
s32 PS4_SYSV_ABI sceNpProfileDialogInitialize();
|
||||||
|
s32 PS4_SYSV_ABI sceNpProfileDialogOpenA();
|
||||||
|
s32 PS4_SYSV_ABI sceNpProfileDialogTerminate();
|
||||||
|
s32 PS4_SYSV_ABI sceNpProfileDialogUpdateStatus();
|
||||||
|
|
||||||
|
void RegisterLib(Core::Loader::SymbolsResolver* sym);
|
||||||
|
} // namespace Libraries::NpProfileDialog
|
||||||
Reference in New Issue
Block a user