mirror of
https://github.com/n64decomp/mk64
synced 2026-07-08 21:04:48 -04:00
17a6f4bb3d
* update clang and add action * try clang on course folder only * forget two file * Update course_displaylists.inc.c * forget few other file * Update course_vertices.inc.c * format all code while get it match * second pass * format other dir * disable clang format on bad ido code * fix some tabulation * revert format on tool dir * Update clang-format.yml * ignore gbi.h * add some read me instruction * fix error * format and fixing error * Update README.md --------- Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
24 lines
510 B
C
24 lines
510 B
C
#include "libultra_internal.h"
|
|
|
|
extern OSTimer* __osTimerList;
|
|
extern u64 __osInsertTimer(OSTimer*);
|
|
|
|
u32 osSetTimer(OSTimer* a0, OSTime a1, u64 a2, OSMesgQueue* a3, OSMesg a4) {
|
|
u64 sp18;
|
|
a0->next = NULL;
|
|
a0->prev = NULL;
|
|
a0->interval = a2;
|
|
if (a1 != 0) {
|
|
a0->remaining = a1;
|
|
} else {
|
|
a0->remaining = a2;
|
|
}
|
|
a0->mq = a3;
|
|
a0->msg = a4;
|
|
sp18 = __osInsertTimer(a0);
|
|
if (__osTimerList->next == a0) {
|
|
__osSetTimerIntr(sp18);
|
|
}
|
|
return 0;
|
|
}
|