mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-12 22:59:04 +00:00
Add stubbed libSceNpProfileDialog library (#3411)
* Stubbed library * Silence sceNpProfileDialogUpdateStatus * the loathsome clang-formatter
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "core/libraries/np_common/np_common.h"
|
||||
#include "core/libraries/np_manager/np_manager.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_trophy/np_trophy.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::NpTrophy::RegisterLib(sym);
|
||||
Libraries::NpWebApi::RegisterLib(sym);
|
||||
Libraries::NpProfileDialog::RegisterLib(sym);
|
||||
Libraries::NpAuth::RegisterLib(sym);
|
||||
Libraries::ScreenShot::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