wut/include/coreinit/systeminfo.h

42 lines
665 B
C
Raw Normal View History

2016-06-08 01:20:34 +02:00
#pragma once
#include <wut.h>
/**
* \defgroup coreinit_systeminfo System Info
* \ingroup coreinit
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef struct OSSystemInfo OSSystemInfo;
struct OSSystemInfo
{
2018-05-28 12:39:36 +02:00
uint32_t busClockSpeed;
uint32_t coreClockSpeed;
int64_t baseTime;
2018-06-20 11:31:53 +02:00
WUT_UNKNOWN_BYTES(0x10);
2016-06-08 01:20:34 +02:00
};
2018-06-20 11:31:53 +02:00
WUT_CHECK_OFFSET(OSSystemInfo, 0x0, busClockSpeed);
WUT_CHECK_OFFSET(OSSystemInfo, 0x4, coreClockSpeed);
WUT_CHECK_OFFSET(OSSystemInfo, 0x8, baseTime);
WUT_CHECK_SIZE(OSSystemInfo, 0x20);
2016-06-08 01:20:34 +02:00
OSSystemInfo *
OSGetSystemInfo();
BOOL
OSEnableHomeButtonMenu(BOOL enable);
BOOL
OSIsHomeButtonMenuEnabled();
2016-06-08 01:20:34 +02:00
#ifdef __cplusplus
}
#endif
/** @} */