added a login event in sceUserServiceGetEvent

This commit is contained in:
georgemoralis 2024-05-02 17:14:55 +03:00
parent d2cc256b28
commit 150854c583
2 changed files with 14 additions and 4 deletions

View File

@ -103,11 +103,21 @@ int PS4_SYSV_ABI sceUserServiceGetDiscPlayerFlag() {
return ORBIS_OK;
}
int PS4_SYSV_ABI sceUserServiceGetEvent() {
LOG_ERROR(Lib_UserService, "(STUBBED) called");
s32 PS4_SYSV_ABI sceUserServiceGetEvent(OrbisUserServiceEvent* event) {
LOG_INFO(Lib_UserService, "(DUMMY) called");
// fake a loggin event
static bool logged_in = false;
if (!logged_in) {
logged_in = true;
event->event = SCE_USER_SERVICE_EVENT_TYPE_LOGIN;
event->userId = 1;
return ORBIS_OK;
}
return ORBIS_USER_SERVICE_ERROR_NO_EVENT;
}
int PS4_SYSV_ABI sceUserServiceGetEventCalendarType() {
LOG_ERROR(Lib_UserService, "(STUBBED) called");
return ORBIS_OK;

View File

@ -76,7 +76,7 @@ int PS4_SYSV_ABI sceUserServiceGetCurrentUserGroupIndex();
int PS4_SYSV_ABI sceUserServiceGetDefaultNewUserGroupName();
int PS4_SYSV_ABI sceUserServiceGetDeletedUserInfo();
int PS4_SYSV_ABI sceUserServiceGetDiscPlayerFlag();
int PS4_SYSV_ABI sceUserServiceGetEvent();
int PS4_SYSV_ABI sceUserServiceGetEvent(OrbisUserServiceEvent* event);
int PS4_SYSV_ABI sceUserServiceGetEventCalendarType();
int PS4_SYSV_ABI sceUserServiceGetEventFilterTeamEvent();
int PS4_SYSV_ABI sceUserServiceGetEventSortEvent();