Add some random return to make games at least start using this library

This commit is contained in:
kalaposfos13 2025-04-18 18:06:56 +02:00
parent ece5a80e76
commit 87f62991ee
2 changed files with 6 additions and 3 deletions

View file

@ -8,6 +8,8 @@
namespace Libraries::NpAuth {
static u32 auth_id = 1;
s32 PS4_SYSV_ABI sceNpAuthGetAuthorizationCode() {
LOG_ERROR(Lib_NpAuth, "(STUBBED) called");
return ORBIS_OK;
@ -30,11 +32,12 @@ s32 PS4_SYSV_ABI sceNpAuthCreateAsyncRequest() {
s32 PS4_SYSV_ABI sceNpAuthCreateRequest() {
LOG_ERROR(Lib_NpAuth, "(STUBBED) called");
return ORBIS_OK;
return auth_id++;
}
s32 PS4_SYSV_ABI sceNpAuthDeleteRequest() {
s32 PS4_SYSV_ABI sceNpAuthDeleteRequest(u32 id) {
LOG_ERROR(Lib_NpAuth, "(STUBBED) called");
auth_id--;
return ORBIS_OK;
}

View file

@ -16,7 +16,7 @@ s32 PS4_SYSV_ABI sceNpAuthGetIdToken();
s32 PS4_SYSV_ABI sceNpAuthAbortRequest();
s32 PS4_SYSV_ABI sceNpAuthCreateAsyncRequest();
s32 PS4_SYSV_ABI sceNpAuthCreateRequest();
s32 PS4_SYSV_ABI sceNpAuthDeleteRequest();
s32 PS4_SYSV_ABI sceNpAuthDeleteRequest(u32 id);
s32 PS4_SYSV_ABI sceNpAuthGetAuthorizationCodeA();
s32 PS4_SYSV_ABI sceNpAuthGetAuthorizationCodeV3();
s32 PS4_SYSV_ABI sceNpAuthGetIdTokenA();