MCPcopy Create free account
hub / github.com/devkitPro/libctru / osGetKernelVersion

Function osGetKernelVersion

libctru/include/3ds/os.h:197–200  ·  view source on GitHub ↗

* @brief Gets the system's kernel version. * @return The system's kernel version. * * This can be used to compare system versions easily with @ref SYSTEM_VERSION. * * @code * if(osGetKernelVersion() > SYSTEM_VERSION(2,46,0)) printf("You are running 9.0 or higher\n"); * @endcode */

Source from the content-addressed store, hash-verified

195 * @endcode
196 */
197static inline u32 osGetKernelVersion(void)
198{
199 return OS_KernelConfig->kernel_ver &~ 0xFF;
200}
201
202/// Gets the system's "core version" (2 on NATIVE_FIRM, 3 on SAFE_FIRM, etc.)
203static inline u32 osGetSystemCoreVersion(void)

Callers 1

srvInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected