[XAM/USER] - Implement Multiple Functions
- Implement XamUserGetCachedUserFlags, XamIsChildAccountSignedIn, XamUserGetOnlineLanguageFromXUID and XamUserGetOnlineCountryFromXUID - add IsParentalControlled()
This commit is contained in:
committed by
Radosław Gliński
parent
fd1abfe6aa
commit
20d3ac4ca9
@@ -812,6 +812,7 @@ struct X_XAMACCOUNTINFO {
|
||||
return std::string_view(online_domain);
|
||||
}
|
||||
|
||||
uint32_t GetReservedFlags() const { return reserved_flags; };
|
||||
uint32_t GetCachedFlags() const { return cached_user_flags; };
|
||||
|
||||
XOnlineCountry GetCountry() const {
|
||||
@@ -823,6 +824,10 @@ struct X_XAMACCOUNTINFO {
|
||||
(cached_user_flags & kSubscriptionTierMask) >> 20);
|
||||
}
|
||||
|
||||
bool IsParentalControlled() const {
|
||||
return static_cast<bool>((cached_user_flags & kLanguageMask) >> 24);
|
||||
}
|
||||
|
||||
XLanguage GetLanguage() const {
|
||||
return static_cast<XLanguage>((cached_user_flags & kLanguageMask) >> 25);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user