1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-14 21:40:03 +00:00
oot/src/libultra_boot_O2/osViSetMode.c

12 lines
251 B
C
Raw Normal View History

#include "global.h"
2020-03-17 04:31:30 +00:00
2020-03-22 21:19:43 +00:00
void osViSetMode(OSViMode* mode) {
register u32 prevInt = __osDisableInt();
2020-03-17 04:31:30 +00:00
__osViNext->modep = mode;
__osViNext->state = 1;
__osViNext->features = __osViNext->modep->comRegs.ctrl;
__osRestoreInt(prevInt);
2020-03-17 04:31:30 +00:00
}