mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-10 08:50:23 +00:00
Documentation for fault.c and fault_drawer.c (#1106)
* Mostly document fault and fault_drawer * FaultDrawer printf functions return s32 * Review Suggestions for comments Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com> * Some further review suggestions * Further changes from suggestions * Fix Fault_AddClient doc comment * Bug comment for memdump overrun, add more to Fault_PadCallback bug comment * mb -> MB, comment about bss above externs * Fix color codes Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>
This commit is contained in:
parent
cd1d08d34f
commit
c8f4d66b00
42 changed files with 1010 additions and 767 deletions
|
@ -1,6 +1,6 @@
|
|||
#include "global.h"
|
||||
|
||||
OSThread* __osThreadTail[2] = { NULL, (OSThread*)-1 };
|
||||
OSThread* __osThreadTail[2] = { NULL, (OSThread*)OS_PRIORITY_THREADTAIL };
|
||||
OSThread* __osRunQueue = (OSThread*)__osThreadTail;
|
||||
OSThread* __osActiveQueue = (OSThread*)__osThreadTail;
|
||||
OSThread* __osRunningThread = NULL;
|
||||
|
|
|
@ -16,7 +16,7 @@ void osDestroyThread(OSThread* thread) {
|
|||
__osActiveQueue = __osActiveQueue->tlnext;
|
||||
} else {
|
||||
s1 = __osActiveQueue;
|
||||
while (s1->priority != -1) {
|
||||
while (s1->priority != OS_PRIORITY_THREADTAIL) {
|
||||
s2 = s1->tlnext;
|
||||
if (s2 == thread) {
|
||||
s1->tlnext = thread->tlnext;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue