ectx: note as 11.0.0+

This commit is contained in:
Michael Scire 2020-12-03 10:13:00 -08:00
parent f225a246cf
commit 45ed2d648e
2 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,7 @@
#include "../kernel/event.h"
#include "../sf/service.h"
/// Initialize ectx:r.
/// [11.0.0+] Initialize ectx:r.
Result ectxrInitialize(void);
/// Exit ectx:r.
@ -19,7 +19,7 @@ void ectxrExit(void);
Service* ectxrGetServiceSession(void);
/**
* @brief Retrieves the error context associated with an error descriptor and result.
* @brief [11.0.0+] Retrieves the error context associated with an error descriptor and result.
* @return Result code.
*/
Result ectxrPullContext(s32 *out0, u32 *out_total_size, u32 *out_size, void *dst, size_t dst_size, u32 descriptor, Result result);

View File

@ -1,5 +1,6 @@
#define NX_SERVICE_ASSUME_NON_DOMAIN
#include "service_guard.h"
#include "runtime/hosversion.h"
#include "services/ectx.h"
static Service g_ectxrSrv;
@ -7,6 +8,8 @@ static Service g_ectxrSrv;
NX_GENERATE_SERVICE_GUARD(ectxr);
Result _ectxrInitialize(void) {
if (hosversionBefore(11,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return smGetService(&g_ectxrSrv, "ectx:r");
}