summaryrefslogtreecommitdiff
path: root/soh/src/libultra/io/viblack.c
blob: 6571688660089e60c4c73f9541cc98a8b1024af8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "global.h"

// TODO: name magic constants
void osViBlack(u8 active) {
    register u32 prevInt = __osDisableInt();

    if (active) {
        __osViNext->state |= 0x20;
    } else {
        __osViNext->state &= ~0x20;
    }
    __osRestoreInt(prevInt);
}