mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-06-06 11:47:59 -04:00
5c23113592
* libultra from sm64 integrated; 3 libultra functions matched * All of libultra done! authored-by: farisawan-2000 <farisawan.2000@gmail.com>
12 lines
303 B
C
12 lines
303 B
C
#include "libultra_internal.h"
|
|
|
|
extern OSViContext *__osViNext;
|
|
|
|
void osViSetMode(OSViMode *mode) {
|
|
register u32 int_disabled = __osDisableInt();
|
|
__osViNext->modep = mode;
|
|
__osViNext->unk00 = 1;
|
|
__osViNext->features = __osViNext->modep->comRegs.ctrl;
|
|
__osRestoreInt(int_disabled);
|
|
}
|