mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 11:22:15 +02:00
ectx: note as 11.0.0+
This commit is contained in:
parent
f225a246cf
commit
45ed2d648e
@ -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);
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user