mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 04:52:39 +02:00
27 lines
951 B
C
27 lines
951 B
C
/**
|
|
* @file detect.h
|
|
* @brief Kernel version detection
|
|
* @author plutoo
|
|
* @copyright libnx Authors
|
|
*/
|
|
#pragma once
|
|
#include "../types.h"
|
|
|
|
/// Returns true if the kernel version is equal to or above 2.0.0.
|
|
bool kernelAbove200(void);
|
|
/// Returns true if the kernel version is equal to or above 3.0.0.
|
|
bool kernelAbove300(void);
|
|
/// Returns true if the kernel version is equal to or above 4.0.0.
|
|
bool kernelAbove400(void);
|
|
/// Returns true if the kernel version is equal to or above 5.0.0.
|
|
bool kernelAbove500(void);
|
|
/// Returns true if the kernel version is equal to or above 6.0.0.
|
|
bool kernelAbove600(void);
|
|
/// Returns true if the process has a debugger attached.
|
|
bool detectDebugger(void);
|
|
|
|
/// Returns true if the kernel is patched to allow self-process-jit.
|
|
bool detectJitKernelPatch(void);
|
|
/// After this has been called, libnx will ignore the self-process-jit kernel patch. For testing purposes only.
|
|
void detectIgnoreJitKernelPatch(void);
|