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;
|
2018-06-18 11:04:27 +02:00
|
|
|
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();
|
|
|
|
|
2017-06-02 12:41:54 +02:00
|
|
|
BOOL
|
|
|
|
OSEnableHomeButtonMenu(BOOL enable);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
OSIsHomeButtonMenuEnabled();
|
|
|
|
|
2016-06-08 01:20:34 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/** @} */
|