mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-07-26 22:42:54 -04:00
5c23113592
* libultra from sm64 integrated; 3 libultra functions matched * All of libultra done! authored-by: farisawan-2000 <farisawan.2000@gmail.com>
11 lines
281 B
C
11 lines
281 B
C
#include "libultra_internal.h"
|
|
|
|
extern OSViContext *__osViNext;
|
|
|
|
void osViSwapBuffer(void *vaddr) {
|
|
u32 int_disabled = __osDisableInt();
|
|
__osViNext->buffer = vaddr;
|
|
__osViNext->unk00 |= 0x10; // TODO: figure out what this flag means
|
|
__osRestoreInt(int_disabled);
|
|
}
|