mirror of
https://github.com/devkitPro/wut.git
synced 2026-12-05 07:50:06 -06:00
Names are from [Cemu](e6c528a20a/src/libdecaf/src/cafe/libraries/coreinit/coreinit_systeminfo.h (L15))
52 lines
906 B
C
52 lines
906 B
C
#pragma once
|
|
#include <wut.h>
|
|
|
|
/**
|
|
* \defgroup coreinit_systeminfo System Info
|
|
* \ingroup coreinit
|
|
* @{
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct OSSystemInfo OSSystemInfo;
|
|
|
|
struct OSSystemInfo
|
|
{
|
|
uint32_t busClockSpeed;
|
|
//! Equal to busClockSpeed * coreClockRatio
|
|
uint32_t coreClockSpeed;
|
|
int64_t baseTime;
|
|
uint32_t l2CacheSize[3];
|
|
uint32_t coreClockRatio;
|
|
};
|
|
WUT_CHECK_OFFSET(OSSystemInfo, 0x0, busClockSpeed);
|
|
WUT_CHECK_OFFSET(OSSystemInfo, 0x4, coreClockSpeed);
|
|
WUT_CHECK_OFFSET(OSSystemInfo, 0x8, baseTime);
|
|
WUT_CHECK_OFFSET(OSSystemInfo, 0x10, l2CacheSize);
|
|
WUT_CHECK_OFFSET(OSSystemInfo, 0x1c, coreClockRatio);
|
|
WUT_CHECK_SIZE(OSSystemInfo, 0x20);
|
|
|
|
OSSystemInfo *
|
|
OSGetSystemInfo();
|
|
|
|
BOOL
|
|
OSEnableHomeButtonMenu(BOOL enable);
|
|
|
|
BOOL
|
|
OSIsHomeButtonMenuEnabled();
|
|
|
|
uint64_t
|
|
OSGetOSID();
|
|
|
|
uint32_t
|
|
__OSGetProcessSDKVersion();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/** @} */
|