MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / __OSTimeToSystemTime

Function __OSTimeToSystemTime

src/dolphin/src/os/OSTime.c:55–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55OSTime __OSTimeToSystemTime(OSTime time)
56{
57 BOOL enabled;
58 OSTime* timeAdjustAddr = (OSTime*)(OS_BASE_CACHED + OS_SYSTEMTIME_BASE);
59 OSTime result;
60
61 enabled = OSDisableInterrupts();
62 result = *timeAdjustAddr + time;
63 OSRestoreInterrupts(enabled);
64
65 return result;
66}
67
68inline BOOL IsLeapYear(s32 year)
69{

Callers 1

OSSetPeriodicAlarmFunction · 0.85

Calls 1

OSDisableInterruptsFunction · 0.85

Tested by

no test coverage detected