Skip to content

Commit

Permalink
Add system time update functions
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryOderNichts committed Oct 7, 2023
1 parent 0406a83 commit cb9046e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/coreinit/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ void
OSTicksToCalendarTime(OSTime time,
OSCalendarTime *calendarTime);

BOOL
__OSSetAbsoluteSystemTime(OSTime time);

#ifdef __cplusplus
}
#endif
Expand Down
13 changes: 13 additions & 0 deletions include/nn/ccr/sys.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once
#include <wut.h>
#include <coreinit/time.h>

/**
* \defgroup nn_ccr_sys
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cb9046e

Please sign in to comment.