Add system time update functions

This commit is contained in:
GaryOderNichts
2023-10-06 23:03:16 +02:00
parent 0406a8377c
commit cb9046e776
2 changed files with 16 additions and 0 deletions

View File

@@ -84,6 +84,9 @@ void
OSTicksToCalendarTime(OSTime time,
OSCalendarTime *calendarTime);
BOOL
__OSSetAbsoluteSystemTime(OSTime time);
#ifdef __cplusplus
}
#endif

View File

@@ -1,5 +1,6 @@
#pragma once
#include <wut.h>
#include <coreinit/time.h>
/**
* \defgroup nn_ccr_sys
@@ -105,6 +106,18 @@ CCRSysGetPairingState(void);
int32_t
CCRSysGetPincode(uint32_t *pin);
/**
* Sets the DRH system time.
*
* \param time
* The system time in ticks.
*
* \return
* 0 on success.
*/
int32_t
CCRSysSetSystemTime(OSTime time);
#ifdef __cplusplus
}
#endif