From dc444a4a2d39c66e238412ec5411e41c98910d79 Mon Sep 17 00:00:00 2001 From: Gliniak Date: Sat, 11 Jan 2020 13:16:53 +0100 Subject: [PATCH] [XAM/Party] Added stub for: XamPartyGetUserListInternal It will allow to run dashboard with signin_state = 2 Should we create different xam file for XamParty functions? ToDo: Finish struct that store user info --- src/xenia/kernel/xam/xam_user.cc | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/xenia/kernel/xam/xam_user.cc b/src/xenia/kernel/xam/xam_user.cc index ab1b1b5a0..fbd12af5e 100644 --- a/src/xenia/kernel/xam/xam_user.cc +++ b/src/xenia/kernel/xam/xam_user.cc @@ -915,6 +915,33 @@ dword_result_t XamProfileCreate(dword_t flags, lpdword_t device_id, } DECLARE_XAM_EXPORT1(XamProfileCreate, kUserProfiles, kStub); +#pragma pack(push, 1) +struct X_USER_INFO { + xe::be xuid; + char name[16]; + xe::be user_index; + xe::be unk; + xe::be title_id; + xe::be unk2; + xe::be unk3; +}; +static_assert_size(X_USER_INFO, 44); + +typedef struct { + xe::be user_count; + X_USER_INFO users_info[7]; +} X_USER_PARTY_LIST; +static_assert_size(X_USER_PARTY_LIST, 4+sizeof(X_USER_INFO)*7); +#pragma pack(pop) + +dword_result_t XamPartyGetUserListInternal( + pointer_t party_struct_ptr) { + + party_struct_ptr->user_count = 0; + return X_ERROR_SUCCESS; +} +DECLARE_XAM_EXPORT1(XamPartyGetUserListInternal, kUserProfiles, kStub); + } // namespace xdbf } // namespace xam } // namespace kernel