mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-20 03:24:49 +00:00
Add some random return to make games at least start using this library
This commit is contained in:
parent
ece5a80e76
commit
87f62991ee
2 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue