From 330181364e121538abdf14670dfb2081ae795348 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 17 Dec 2020 04:10:25 -0800 Subject: [PATCH] loader: correct GetCapabilityId allowal --- .../include/stratosphere/svc/svc_stratosphere_shims.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libstratosphere/include/stratosphere/svc/svc_stratosphere_shims.hpp b/libstratosphere/include/stratosphere/svc/svc_stratosphere_shims.hpp index 49d89469..1a5cc7e0 100644 --- a/libstratosphere/include/stratosphere/svc/svc_stratosphere_shims.hpp +++ b/libstratosphere/include/stratosphere/svc/svc_stratosphere_shims.hpp @@ -507,6 +507,11 @@ return R_SUCCEEDED(::ams::svc::GetInfo(std::addressof(dummy), ::ams::svc::InfoType_MesosphereMeta, ::ams::svc::InvalidHandle, ::ams::svc::MesosphereMetaInfo_KernelVersion)); } + ALWAYS_INLINE bool IsKTraceEnabled() { + uint64_t value = 0; + return R_SUCCEEDED(::ams::svc::GetInfo(std::addressof(value), ::ams::svc::InfoType_MesosphereMeta, ::ams::svc::InvalidHandle, ::ams::svc::MesosphereMetaInfo_IsKTraceEnabled)) && value != 0; + } + } #endif \ No newline at end of file