From 532b4f4de250dbfcc12577f10f678a8bd97ceff5 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 19 Sep 2018 16:30:11 -0700 Subject: [PATCH] Loader: Fix HBL pool partition ID copy --- stratosphere/loader/source/ldr_npdm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stratosphere/loader/source/ldr_npdm.cpp b/stratosphere/loader/source/ldr_npdm.cpp index 8e882bd21..2bb9eb669 100644 --- a/stratosphere/loader/source/ldr_npdm.cpp +++ b/stratosphere/loader/source/ldr_npdm.cpp @@ -187,7 +187,7 @@ Result NpdmUtils::LoadNpdm(u64 tid, NpdmInfo *out) { NpdmInfo *original_info = &g_original_npdm_cache.info; /* Fix pool partition. */ 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. */ const u32 original_application_type = GetApplicationType((u32 *)original_info->aci0_kac, original_info->aci0->kac_size/sizeof(u32)) & 7;