Allow XamUserReadProfileSettings to use xuid to define profile

This commit is contained in:
Gliniak
2022-04-15 09:28:42 +02:00
parent 84e5b159c3
commit dde8adc140
4 changed files with 42 additions and 10 deletions

View File

@@ -321,7 +321,8 @@ X_RESULT ContentManager::DeleteContent(const XCONTENT_AGGREGATE_DATA& data) {
std::filesystem::path ContentManager::ResolveGameUserContentPath() {
auto title_id = fmt::format("{:08X}", kernel_state_->title_id());
auto user_name = xe::to_path(kernel_state_->user_profile(0)->name());
auto user_name =
xe::to_path(kernel_state_->user_profile(uint32_t(0))->name());
// Per-game per-profile data location:
// content_root/title_id/profile/user_name