loader: correct GetCapabilityId allowal

This commit is contained in:
Michael Scire
2020-12-17 04:10:25 -08:00
parent f7e83a72a9
commit b8471bcd4e
2 changed files with 8 additions and 5 deletions

View File

@@ -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