mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
- Simplify kernel/detect.h logic; introduce detectKernelVersion() - Use set:sys (if available) during __appInit in order to initialize the current HOS version
14 lines
249 B
C
14 lines
249 B
C
#include "runtime/hosversion.h"
|
|
|
|
static u32 g_hosVersion;
|
|
|
|
u32 hosversionGet(void)
|
|
{
|
|
return __atomic_load_n(&g_hosVersion, __ATOMIC_SEQ_CST);
|
|
}
|
|
|
|
void hosversionSet(u32 version)
|
|
{
|
|
__atomic_store_n(&g_hosVersion, version, __ATOMIC_SEQ_CST);
|
|
}
|