libnx
detect.h
Go to the documentation of this file.
1 /**
2  * @file detect.h
3  * @brief Kernel version detection
4  * @author plutoo
5  * @copyright libnx Authors
6  */
7 #pragma once
8 #include "../types.h"
9 
10 /// Returns true if the kernel version is equal to or above 2.0.0.
11 bool kernelAbove200(void);
12 /// Returns true if the kernel version is equal to or above 3.0.0.
13 bool kernelAbove300(void);
14 /// Returns true if the kernel version is equal to or above 4.0.0.
15 bool kernelAbove400(void);
16 /// Returns true if the kernel version is equal to or above 5.0.0.
17 bool kernelAbove500(void);
18 /// Returns true if the process has a debugger attached.
19 bool detectDebugger(void);
bool kernelAbove400(void)
Returns true if the kernel version is equal to or above 4.0.0.
bool kernelAbove300(void)
Returns true if the kernel version is equal to or above 3.0.0.
bool kernelAbove500(void)
Returns true if the kernel version is equal to or above 5.0.0.
bool kernelAbove200(void)
Returns true if the kernel version is equal to or above 2.0.0.
bool detectDebugger(void)
Returns true if the process has a debugger attached.