[XAM] Fixed issue with missing DLCs due to invalid XUID

This commit is contained in:
Gliniak 2025-01-12 17:01:00 +01:00
parent a77213dcdb
commit 57da74814b
1 changed files with 6 additions and 0 deletions

View File

@ -106,6 +106,12 @@ std::filesystem::path ContentManager::ResolvePackagePath(
uint64_t used_xuid =
(data.xuid != -1 && data.xuid != 0) ? data.xuid.get() : xuid;
// All DLCs are stored in common directory, so we need to override xuid for
// them and probably some other types.
if (data.content_type == XContentType::kMarketplaceContent) {
used_xuid = 0;
}
auto package_root =
ResolvePackageRoot(used_xuid, title_id, data.content_type);
std::string final_name = xe::string_util::trim(data.file_name());