From a27e9f1595c2cb28a6656b8766359b38542203cc Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 12 Jun 2020 11:01:47 -0700 Subject: [PATCH] exo: amend pk21 restrictions --- libexosphere/include/exosphere/pkg1/pkg1_boot_config.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libexosphere/include/exosphere/pkg1/pkg1_boot_config.hpp b/libexosphere/include/exosphere/pkg1/pkg1_boot_config.hpp index 5d37aa2c..8f67ab2f 100644 --- a/libexosphere/include/exosphere/pkg1/pkg1_boot_config.hpp +++ b/libexosphere/include/exosphere/pkg1/pkg1_boot_config.hpp @@ -123,8 +123,12 @@ namespace ams::pkg1 { return (this->flags1[0] & (1 << 0)) != 0; } - constexpr void SetPackage2Decrypted(bool decrypted) { - this->flags |= decrypted ? 0x3 : 0x0; + constexpr void SetPackage2SignatureVerificationDisabled(bool decrypted) { + this->flags |= decrypted ? (1 << 1) : (0 << 0); + } + + constexpr void SetPackage2EncryptionDisabled(bool decrypted) { + this->flags |= decrypted ? (1 << 0) : (0 << 0); } }; static_assert(util::is_pod::value);