summaryrefslogtreecommitdiff
path: root/src/libultra_boot_O2/osViGetNextFramebuffer.c
diff options
context:
space:
mode:
authorJack Walker <7463599+Jack-Walker@users.noreply.github.com>2020-03-17 00:31:30 -0400
committerJack Walker <7463599+Jack-Walker@users.noreply.github.com>2020-03-17 00:31:30 -0400
commit087f561f7786a812c815b9198f24e6acd0477497 (patch)
tree8e8b1efeb798ff0b341d39de024d7b8554013c4a /src/libultra_boot_O2/osViGetNextFramebuffer.c
parentbe78236d36a5eb4ef80acef6188751f6b5d176ae (diff)
First proper commit.
Diffstat (limited to 'src/libultra_boot_O2/osViGetNextFramebuffer.c')
-rw-r--r--src/libultra_boot_O2/osViGetNextFramebuffer.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libultra_boot_O2/osViGetNextFramebuffer.c b/src/libultra_boot_O2/osViGetNextFramebuffer.c
new file mode 100644
index 000000000..83eaa2705
--- /dev/null
+++ b/src/libultra_boot_O2/osViGetNextFramebuffer.c
@@ -0,0 +1,9 @@
+#include <global.h>
+
+void* osViGetNextFramebuffer()
+{
+ s32 prevInt = __osDisableInt();
+ void* buff = __osViNext->buffer;
+ __osRestoreInt(prevInt);
+ return buff;
+} \ No newline at end of file