remove "done" folders, label "bs/droneenter, bs/dronelook, and bs/dronevanish files and functions"

This commit is contained in:
Banjo Kazooie
2023-01-21 20:13:03 -06:00
parent 0ecaa54b4a
commit c004632915
190 changed files with 645 additions and 644 deletions

27
src/core1/os/stoptimer.c Normal file
View File

@@ -0,0 +1,27 @@
#include <ultra64.h>
#include "osint.h"
int osStopTimer(OSTimer *t)
{
register u32 savedMask;
OSTimer *timep;
if (t->next == NULL)
return -1;
savedMask = __osDisableInt();
timep = t->next;
if (timep != __osTimerList)
{
timep->value += t->value;
}
t->prev->next = t->next;
t->next->prev = t->prev;
t->next = NULL;
t->prev = NULL;
if (__osTimerList->next == __osTimerList)
{
__osSetCompare(0);
}
__osRestoreInt(savedMask);
return 0;
}