1
0
mirror of https://github.com/zeldaret/oot.git synced 2024-09-23 05:45:03 +00:00
oot/src/libultra_boot_O2/osViBlack.c

13 lines
273 B
C
Raw Normal View History

2020-03-17 04:31:30 +00:00
#include <global.h>
// TODO: name magic constants
2020-03-22 21:19:43 +00:00
void osViBlack(u8 active) {
2020-03-17 04:31:30 +00:00
register u32 int_disabled = __osDisableInt();
if (active) {
__osViNext->state |= 0x20;
} else {
__osViNext->state &= ~0x20;
}
__osRestoreInt(int_disabled);
}