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

View File

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

View File

@ -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;
}