1
0
mirror of https://github.com/switchbrew/libnx.git synced 2025-07-26 03:52:24 +02:00

Detect 4.0.0

This commit is contained in:
plutoo 2018-01-01 19:52:41 +01:00
parent d3c8f58db4
commit 91afc81ce1
2 changed files with 6 additions and 0 deletions
nx
include/switch/kernel
source/kernel

View File

@ -1,3 +1,4 @@
// Copyright 2017 plutoo // Copyright 2017 plutoo
bool kernelAbove200(); bool kernelAbove200();
bool kernelAbove300(); bool kernelAbove300();
bool kernelAbove400();

View File

@ -10,3 +10,8 @@ bool kernelAbove300() {
u64 tmp; u64 tmp;
return svcGetInfo(&tmp, 18, INVALID_HANDLE, 0) != 0xF001; return svcGetInfo(&tmp, 18, INVALID_HANDLE, 0) != 0xF001;
} }
bool kernelAbove400() {
u64 tmp;
return svcGetInfo(&tmp, 19, INVALID_HANDLE, 0) != 0xF001;
}