libnx/nx/source/runtime/hosversion.c
fincs 61cc738730 Introduce hosversion.h - HOS version detection utilities
- Simplify kernel/detect.h logic; introduce detectKernelVersion()
- Use set:sys (if available) during __appInit in order to initialize
  the current HOS version
2019-02-18 21:48:41 +01:00

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