mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
c: __scHandleRDP
This commit is contained in:
+3
-3
@@ -3,14 +3,14 @@
|
||||
|
||||
#include "libultra_internal.h"
|
||||
|
||||
extern OSViContext *D_800E4874;
|
||||
extern OSViContext *__osViNext;
|
||||
// TODO: name magic constants
|
||||
void osViBlack(u8 active) {
|
||||
register u32 int_disabled = __osDisableInt();
|
||||
if (active) {
|
||||
D_800E4874->unk00 |= 0x20;
|
||||
__osViNext->unk00 |= 0x20;
|
||||
} else {
|
||||
D_800E4874->unk00 &= ~0x20;
|
||||
__osViNext->unk00 &= ~0x20;
|
||||
}
|
||||
__osRestoreInt(int_disabled);
|
||||
}
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
#include "libultra_internal.h"
|
||||
|
||||
extern OSViContext* D_800E4874;
|
||||
extern OSViContext* __osViNext;
|
||||
|
||||
void osViSwapBuffer(void* frameBufPtr){
|
||||
u32 saveMask = __osDisableInt();
|
||||
D_800E4874->buffer = frameBufPtr;
|
||||
D_800E4874->unk00 |= 0x10;
|
||||
__osViNext->buffer = frameBufPtr;
|
||||
__osViNext->unk00 |= 0x10;
|
||||
__osRestoreInt(saveMask);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user