From 04fd5121530e75bf97f140ecccd546f3b0f9f1b4 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 14 Apr 2020 02:54:55 -0700 Subject: [PATCH] pm: Update to support 10.0.0 --- libstratosphere/include/stratosphere/spl/spl_api.hpp | 1 + libstratosphere/source/spl/spl_api.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/libstratosphere/include/stratosphere/spl/spl_api.hpp b/libstratosphere/include/stratosphere/spl/spl_api.hpp index 01b61aec..b2ce4a56 100644 --- a/libstratosphere/include/stratosphere/spl/spl_api.hpp +++ b/libstratosphere/include/stratosphere/spl/spl_api.hpp @@ -21,6 +21,7 @@ namespace ams::spl { HardwareType GetHardwareType(); MemoryArrangement GetMemoryArrangement(); + bool IsDisabledProgramVerification(); bool IsDevelopmentHardware(); bool IsDevelopmentFunctionEnabled(); bool IsMariko(); diff --git a/libstratosphere/source/spl/spl_api.cpp b/libstratosphere/source/spl/spl_api.cpp index cdbae034..032ac52a 100644 --- a/libstratosphere/source/spl/spl_api.cpp +++ b/libstratosphere/source/spl/spl_api.cpp @@ -41,6 +41,12 @@ namespace ams::spl { } } + bool IsDisabledProgramVerification() { + u64 val = 0; + R_ABORT_UNLESS(splGetConfig(SplConfigItem_DisableProgramVerification, &val)); + return val != 0; + } + bool IsDevelopmentHardware() { bool is_dev_hardware; R_ABORT_UNLESS(splIsDevelopment(&is_dev_hardware));