[XAM] Implementation of: Profile Manager & Profiles Support

Thanks Emoose for Account Encrypt/Decrypt code!
This commit is contained in:
Gliniak
2024-09-28 10:42:32 +02:00
committed by Radosław Gliński
parent 9ba0f18c82
commit 9bdd07590c
28 changed files with 1775 additions and 298 deletions

View File

@@ -340,7 +340,8 @@ struct XContentMetadata {
} description_ex_raw;
std::u16string display_name(XLanguage language) const {
uint32_t lang_id = uint32_t(language) - 1;
uint32_t lang_id =
language == XLanguage::kInvalid ? 1 : uint32_t(language) - 1;
if (lang_id >= kNumLanguagesV2) {
assert_always();

View File

@@ -53,6 +53,8 @@ class XContentContainerDevice : public Device {
return files_total_size_ - sizeof(XContentContainerHeader);
}
uint64_t xuid() const { return header_->content_metadata.profile_id; }
uint32_t title_id() const {
return header_->content_metadata.execution_info.title_id;
}