This commit is contained in:
n64 committed 2019-08-25 00:46:40 -04:00
commit 89e8690857
2846 files changed
+625030

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#include "libultra_internal.h"
extern OSTimer *D_80334830;
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 (D_80334830->next == a0) {
__osSetTimerIntr(sp18);
}
return 0;
}