diff --git a/nx/include/switch/kernel/version.h b/nx/include/switch/kernel/version.h index a9844bc5..44762fac 100644 --- a/nx/include/switch/kernel/version.h +++ b/nx/include/switch/kernel/version.h @@ -1,3 +1,4 @@ // Copyright 2017 plutoo bool kernelAbove200(); bool kernelAbove300(); +bool kernelAbove400(); diff --git a/nx/source/kernel/version.c b/nx/source/kernel/version.c index 1af9b4a8..414164fa 100644 --- a/nx/source/kernel/version.c +++ b/nx/source/kernel/version.c @@ -10,3 +10,8 @@ bool kernelAbove300() { u64 tmp; return svcGetInfo(&tmp, 18, INVALID_HANDLE, 0) != 0xF001; } + +bool kernelAbove400() { + u64 tmp; + return svcGetInfo(&tmp, 19, INVALID_HANDLE, 0) != 0xF001; +}