[XAM/USER] - Implement Multiple Functions

- Implement XamUserGetCachedUserFlags, XamIsChildAccountSignedIn, XamUserGetOnlineLanguageFromXUID and XamUserGetOnlineCountryFromXUID
- add IsParentalControlled()
This commit is contained in:
The-Little-Wolf
2025-06-15 12:10:45 -07:00
committed by Radosław Gliński
parent fd1abfe6aa
commit 20d3ac4ca9
4 changed files with 60 additions and 9 deletions

View File

@@ -733,6 +733,18 @@ dword_result_t XamIsXbox1TitleId_entry(dword_t title_id) {
}
DECLARE_XAM_EXPORT1(XamIsXbox1TitleId, kNone, kImplemented);
dword_result_t XamIsChildAccountSignedIn_entry() {
for (uint32_t i = 0; i < XUserMaxUserCount; i++) {
const auto& profile = kernel_state()->xam_state()->GetUserProfile(i);
if (profile && profile->IsParentalControlled()) {
return true;
}
}
return false;
}
DECLARE_XAM_EXPORT1(XamIsChildAccountSignedIn, kNone, kImplemented);
void XamSetActiveDashAppInfo_entry(pointer_t<X_DASH_APP_INFO> dash_app) {
if (!dash_app) {
kernel_state()->dash_app_info_ = {};