mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 16:43:05 -05:00
Addresses review on #8355: drops g_appLauncherReady and the unverified init-param size check so both exports are plain silent stubs, lists them under Silent stubs in the debt file naming PPSA20397, and moves them out of the unknown-info entry. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
127 lines
2.9 KiB
C++
127 lines
2.9 KiB
C++
#include <cstdint>
|
|
#include <cstddef>
|
|
#include <cstring>
|
|
#include <stdexcept>
|
|
#include "SceTypes.hpp"
|
|
#include "prx/libc/include/General.hpp"
|
|
|
|
namespace {
|
|
|
|
constexpr int NpGameIntentErrorInvalidArgument = -2141898748;
|
|
constexpr int NpGameIntentErrorIntentNotFound = -2141898746;
|
|
constexpr int NpGameIntentErrorValueNotFound = -2141898745;
|
|
constexpr int NpGameIntentUserIdInvalid = -1;
|
|
|
|
|
|
}
|
|
|
|
extern "C" {
|
|
|
|
int APS5_VABI sceNpGameIntentGetPropertyValueString(const NpGameIntentData* intentData, const char* key, char* valueBuf, size_t bufSize) {
|
|
if (intentData == nullptr || key == nullptr || valueBuf == nullptr || bufSize == 0) {
|
|
APS5_INVALID_ARG_EX;
|
|
}
|
|
|
|
valueBuf[0] = '\0';
|
|
return NpGameIntentErrorValueNotFound;
|
|
}
|
|
|
|
int APS5_VABI sceNpGameIntentInitialize(const void* initParam) {
|
|
(void)initParam;
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpGameIntentReceiveIntent(NpGameIntentInfo* intentInfo) {
|
|
if (intentInfo == nullptr) {
|
|
APS5_INVALID_ARG_EX;
|
|
}
|
|
|
|
intentInfo->user_id = NpGameIntentUserIdInvalid;
|
|
std::memset(intentInfo->intent_type, 0, sizeof(intentInfo->intent_type));
|
|
std::memset(&intentInfo->intent_data, 0, sizeof(intentInfo->intent_data));
|
|
|
|
return NpGameIntentErrorIntentNotFound;
|
|
}
|
|
|
|
int APS5_VABI sceNpGameIntentTerminate(void) {
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpGameIntentInitParamInit(NpGameIntentInitParam* param) {
|
|
if (param == nullptr) {
|
|
APS5_INVALID_ARG_EX;
|
|
}
|
|
std::memset(param, 0, sizeof(NpGameIntentInitParam));
|
|
param->size = sizeof(NpGameIntentInitParam);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpGameIntentInfoInit(NpGameIntentInfo* info) {
|
|
if (info == nullptr) {
|
|
APS5_INVALID_ARG_EX;
|
|
}
|
|
std::memset(info, 0, sizeof(NpGameIntentInfo));
|
|
info->size = sizeof(NpGameIntentInfo);
|
|
info->user_id = NpGameIntentUserIdInvalid;
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpGameIntentVshInitialize(void) {
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpGameIntentVshTerminate(void) {
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpAppLauncherInitialize(const void* initParam) {
|
|
(void)initParam;
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpAppLauncherLaunchApp() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpAppLauncherTerminate() {
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpGameIntentGetUdsNpComId() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpGameIntentLaunchApp() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpGameIntentLaunchApp2() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpGameIntentNotifyAppLaunched() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpSessionServiceGetJoinedPartySession() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpSessionServiceGetRunningGamePlayerSession() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNpSessionServiceSendPlayerSessionInvitations() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
}
|