2019-08-25 00:46:40 -04:00
|
|
|
#include "libultra_internal.h"
|
2020-12-03 14:26:38 -05:00
|
|
|
|
|
|
|
extern OSViContext *__osViNext;
|
|
|
|
|
2019-08-25 00:46:40 -04:00
|
|
|
// TODO: name magic constants
|
|
|
|
void osViBlack(u8 active) {
|
|
|
|
register u32 int_disabled = __osDisableInt();
|
|
|
|
if (active) {
|
2020-12-03 14:26:38 -05:00
|
|
|
__osViNext->unk00 |= 0x20;
|
2019-08-25 00:46:40 -04:00
|
|
|
} else {
|
2020-12-03 14:26:38 -05:00
|
|
|
__osViNext->unk00 &= ~0x20;
|
2019-08-25 00:46:40 -04:00
|
|
|
}
|
|
|
|
__osRestoreInt(int_disabled);
|
|
|
|
}
|