osViSwapBuffer.c (281B)
1 #include "libultra_internal.h" 2 3 extern OSViContext *__osViNext; 4 5 void osViSwapBuffer(void *vaddr) { 6 u32 int_disabled = __osDisableInt(); 7 __osViNext->buffer = vaddr; 8 __osViNext->unk00 |= 0x10; // TODO: figure out what this flag means 9 __osRestoreInt(int_disabled); 10 }