wut/include/coreinit/systeminfo.h

43 lines
656 B
C
Raw Normal View History

2016-06-08 01:20:34 +02:00
#pragma once
#include <wut.h>
#include "time.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;
2016-06-08 01:20:34 +02:00
OSTime baseTime;
UNKNOWN(0x10);
};
2018-05-28 12:39:36 +02:00
CHECK_OFFSET(OSSystemInfo, 0x0, busClockSpeed);
CHECK_OFFSET(OSSystemInfo, 0x4, coreClockSpeed);
2016-06-08 01:20:34 +02:00
CHECK_OFFSET(OSSystemInfo, 0x8, baseTime);
CHECK_SIZE(OSSystemInfo, 0x20);
OSSystemInfo *
OSGetSystemInfo();
BOOL
OSEnableHomeButtonMenu(BOOL enable);
BOOL
OSIsHomeButtonMenuEnabled();
2016-06-08 01:20:34 +02:00
#ifdef __cplusplus
}
#endif
/** @} */