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));