#include #include #include #include #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; } }