AnyPS5/core/libs/prx/libSceNpTrophy2/src/Context.cpp

39 lines
883 B
C++

#include <cstdint>
#include <stdexcept>
#include <string>
#include "prx/libSceNpTrophy2/include/NpTrophy2.hpp"
#include "prx/libc/include/General.hpp"
extern "C" {
int APS5_VABI sceNpTrophy2CreateContext(int* context, int user_id, uint32_t service_label, uint64_t options) {
if (context == nullptr) {
APS5_INVALID_ARG_EX;
}
(void)user_id;
(void)service_label;
(void)options;
*context = NP_TROPHY2_CONTEXT_DEFAULT;
return SCE_NP_TROPHY2_OK;
}
int APS5_VABI sceNpTrophy2DestroyContext(int context) {
(void)context;
return SCE_NP_TROPHY2_OK;
}
int APS5_VABI sceNpTrophy2RegisterContext(int context, int handle, uint64_t options) {
(void)context;
(void)handle;
(void)options;
return SCE_NP_TROPHY2_OK;
}
int APS5_VABI sceNpTrophy2UnregisterUnlockCallback() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
}