[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:
parent
a74fd46e13
commit
984c8a5222
|
@ -848,13 +848,25 @@ dword_result_t XamReadTileEx(dword_t tile_type, dword_t game_id,
|
||||||
}
|
}
|
||||||
DECLARE_XAM_EXPORT1(XamReadTileEx, kUserProfiles, kSketchy);
|
DECLARE_XAM_EXPORT1(XamReadTileEx, kUserProfiles, kSketchy);
|
||||||
|
|
||||||
dword_result_t XamUserIsOnlineEnabled() {
|
dword_result_t XamUserIsOnlineEnabled(dword_t user_index) {
|
||||||
// 0 - Offline
|
// 0 - Offline
|
||||||
// 1 - Online
|
// 1 - Online
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
DECLARE_XAM_EXPORT1(XamUserIsOnlineEnabled, kUserProfiles, kStub);
|
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 xdbf
|
||||||
} // namespace xam
|
} // namespace xam
|
||||||
} // namespace kernel
|
} // namespace kernel
|
||||||
|
|
Loading…
Reference in New Issue