[XAM/User] Stub GetIndexFromXUID, add param to IsOnlineEnabled

Maybe can help with user_index issues? Not sure, dash still seems to use some wacky indexes sometimes..
This commit is contained in:
emoose 2019-12-25 23:33:14 +00:00 committed by illusion
parent 5155b04da4
commit 510ebd6996
1 changed files with 13 additions and 1 deletions

View File

@ -848,13 +848,25 @@ dword_result_t XamReadTileEx(dword_t tile_type, dword_t game_id,
}
DECLARE_XAM_EXPORT1(XamReadTileEx, kUserProfiles, kSketchy);
dword_result_t XamUserIsOnlineEnabled() {
dword_result_t XamUserIsOnlineEnabled(dword_t user_index) {
// 0 - Offline
// 1 - Online
return 1;
}
DECLARE_XAM_EXPORT1(XamUserIsOnlineEnabled, kUserProfiles, kStub);
dword_result_t XamUserGetIndexFromXUID(qword_t xuid, dword_t r4,
lpdword_t user_index) {
// TODO: support more than 1 user_index!
if (xuid == kernel_state()->user_profile()->xuid()) {
*user_index = 0;
return X_E_SUCCESS;
}
return X_E_NO_SUCH_USER;
}
DECLARE_XAM_EXPORT1(XamUserGetIndexFromXUID, kUserProfiles, kStub);
} // namespace xdbf
} // namespace xam
} // namespace kernel