sys version check

This commit is contained in:
HookedBehemoth 2020-01-31 17:42:38 +01:00
parent c0a44ea5e5
commit 56fe61619a

View File

@ -1,5 +1,6 @@
#define NX_SERVICE_ASSUME_NON_DOMAIN
#include "service_guard.h"
#include "runtime/hosversion.h"
#include "services/capsdc.h"
static Service g_capsdcSrv;
@ -7,6 +8,9 @@ static Service g_capsdcSrv;
NX_GENERATE_SERVICE_GUARD(capsdc);
Result _capsdcInitialize(void) {
if (hosversionBefore(4,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return smGetService(&g_capsdcSrv, "caps:dc");
}