mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 10:32:15 +02:00
sys version check
This commit is contained in:
parent
c0a44ea5e5
commit
56fe61619a
@ -1,5 +1,6 @@
|
|||||||
#define NX_SERVICE_ASSUME_NON_DOMAIN
|
#define NX_SERVICE_ASSUME_NON_DOMAIN
|
||||||
#include "service_guard.h"
|
#include "service_guard.h"
|
||||||
|
#include "runtime/hosversion.h"
|
||||||
#include "services/capsdc.h"
|
#include "services/capsdc.h"
|
||||||
|
|
||||||
static Service g_capsdcSrv;
|
static Service g_capsdcSrv;
|
||||||
@ -7,6 +8,9 @@ static Service g_capsdcSrv;
|
|||||||
NX_GENERATE_SERVICE_GUARD(capsdc);
|
NX_GENERATE_SERVICE_GUARD(capsdc);
|
||||||
|
|
||||||
Result _capsdcInitialize(void) {
|
Result _capsdcInitialize(void) {
|
||||||
|
if (hosversionBefore(4,0,0))
|
||||||
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return smGetService(&g_capsdcSrv, "caps:dc");
|
return smGetService(&g_capsdcSrv, "caps:dc");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user