1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-23 04:12:02 +00:00

Loader: Fix HBL pool partition ID copy

This commit is contained in:
Michael Scire 2018-09-19 16:30:11 -07:00
parent 6afbcd12d9
commit 532b4f4de2

View file

@ -187,7 +187,7 @@ Result NpdmUtils::LoadNpdm(u64 tid, NpdmInfo *out) {
NpdmInfo *original_info = &g_original_npdm_cache.info; NpdmInfo *original_info = &g_original_npdm_cache.info;
/* Fix pool partition. */ /* Fix pool partition. */
if (kernelAbove500()) { if (kernelAbove500()) {
info->acid->flags = (info->acid->flags & 0xFFFFFFF9) | (original_info->acid->flags & 0x00000006); info->acid->flags = (info->acid->flags & 0xFFFFFFC3) | (original_info->acid->flags & 0x0000003C);
} }
/* Fix application type. */ /* Fix application type. */
const u32 original_application_type = GetApplicationType((u32 *)original_info->aci0_kac, original_info->aci0->kac_size/sizeof(u32)) & 7; const u32 original_application_type = GetApplicationType((u32 *)original_info->aci0_kac, original_info->aci0->kac_size/sizeof(u32)) & 7;