mirror of
https://github.com/pmret/papermario.git
synced 2024-11-19 09:22:30 +01:00
41 lines
916 B
C
41 lines
916 B
C
#include "common.h"
|
|
|
|
INCLUDE_ASM(s32, "code_25f00_len_940", func_8004AB00);
|
|
|
|
void func_8004ADD0(s32 arg0) {
|
|
OSIntMask osIntMask = osSetIntMask(OS_IM_NONE);
|
|
|
|
D_80078174 = arg0;
|
|
osSetIntMask(osIntMask);
|
|
}
|
|
|
|
INCLUDE_ASM(s32, "code_25f00_len_940", func_8004AE08);
|
|
|
|
INCLUDE_ASM(s32, "code_25f00_len_940", nuAuDmaCallBack);
|
|
|
|
INCLUDE_ASM(s32, "code_25f00_len_940", nuAuDmaNew);
|
|
|
|
INCLUDE_ASM(s32, "code_25f00_len_940", nuAuCleanDMABuffers);
|
|
|
|
INCLUDE_ASM(s32, "code_25f00_len_940", func_8004B328);
|
|
|
|
void alLink(ALLink* element, ALLink* after) {
|
|
element->next = after->next;
|
|
element->prev = after;
|
|
|
|
if (after->next != NULL) {
|
|
after->next->prev = element;
|
|
}
|
|
after->next = element;
|
|
}
|
|
|
|
void alUnlink(ALLink* element) {
|
|
if (element->next != NULL) {
|
|
element->next->prev = element->prev;
|
|
}
|
|
|
|
if (element->prev != NULL) {
|
|
element->prev->next = element->next;
|
|
}
|
|
}
|