mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-29 11:06:07 +00:00
added a login event in sceUserServiceGetEvent
This commit is contained in:
parent
d2cc256b28
commit
150854c583
|
@ -103,9 +103,19 @@ int PS4_SYSV_ABI sceUserServiceGetDiscPlayerFlag() {
|
|||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceUserServiceGetEvent() {
|
||||
LOG_ERROR(Lib_UserService, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
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() {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue