[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

@@ -106,6 +106,10 @@ KernelState::~KernelState() {
KernelState* KernelState::shared() { return shared_kernel_state_; }
uint32_t KernelState::title_id() const {
if (!executable_module_) {
return 0;
}
assert_not_null(executable_module_);
xex2_opt_execution_info* exec_info = 0;
@@ -577,7 +581,7 @@ std::vector<xam::XCONTENT_AGGREGATE_DATA> KernelState::FindTitleUpdate(
}
return xam_state_->content_manager()->ListContent(
1, xe::XContentType::kInstaller, title_id);
1, 0, title_id, xe::XContentType::kInstaller);
}
const object_ref<UserModule> KernelState::LoadTitleUpdate(
@@ -589,7 +593,7 @@ const object_ref<UserModule> KernelState::LoadTitleUpdate(
}
X_RESULT open_status =
content_manager()->OpenContent("UPDATE", *title_update, disc_number);
content_manager()->OpenContent("UPDATE", 0, *title_update, disc_number);
// Use the corresponding patch for the launch module
std::filesystem::path patch_xexp;