mirror of
https://github.com/zeldaret/mm.git
synced 2026-08-11 03:25:45 -04:00
vigetcurrframebuf OK (#386)
* vigetcurrframebuf OK * Renamed framep to buffer throughout repo * Made tharo's suggestions * Fix functions.h
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
#include "global.h"
|
||||
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/boot/vigetcurrframebuf/osViGetCurrentFramebuffer.s")
|
||||
u32* osViGetCurrentFramebuffer(void) {
|
||||
register u32 prevInt = __osDisableInt();
|
||||
u32* curBuf = __osViCurr->buffer;
|
||||
|
||||
__osRestoreInt(prevInt);
|
||||
|
||||
return curBuf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user