The game is fucking running

This commit is contained in:
KiritoDv
2024-04-01 23:13:52 -06:00
parent 110e54c562
commit 9e6800d369
18 changed files with 769 additions and 474 deletions
+2 -8
View File
@@ -13,7 +13,7 @@ TimerTask* Timer_AllocateTask(void) {
return NULL;
}
s32 Timer_CreateTask(u64 time, TimerAction action, s32* address, s32 value) {
int32_t Timer_CreateTask(uint64_t time, TimerAction action, s32* address, s32 value) {
TimerTask* task = Timer_AllocateTask();
if (task == NULL) {
@@ -41,10 +41,4 @@ void Timer_CompleteTask(TimerTask* task) {
task->active = false;
}
void Timer_Wait(u64 time) {
OSTimer timer;
OSMesg dummy;
osSetTimer(&timer, time, 0, &gTimerWaitMsgQueue, OS_MESG_PTR(NULL));
osRecvMesg(&gTimerWaitMsgQueue, &dummy, OS_MESG_BLOCK);
}
void