diff options
| author | Lucas Shaw <49287729+shawlucas@users.noreply.github.com> | 2020-04-18 18:40:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-18 21:40:27 -0400 |
| commit | 21750d5aee057f5352d945b7cad3c9394efe25b7 (patch) | |
| tree | 4bd52e862a8e91fdc50dcc7a01b072ab44d6d312 /src/libultra_code/osViGetCurrentFramebuffer.c | |
| parent | 4961eb0a9072540ab698d032a92f8e649631935b (diff) | |
Naming some functions in libultra_code, decompiling a decent amount. (#77)
* osgetactivequeue ok
* osspdevicebusy ok
* osGetCurrFaultedThread ok
* osSpRawStartDma OK
* __osSpSetPc and osViGetCurrentFramebuffer OK
* sinf, sins, and sptask OK
* coss OK
* cosf OK
* ran format.sh
* Updated PR to use ultratypes
* osContStartQuery OK
* ran format.sh
* Updated PR to fix issues
* Made suggested changes
Diffstat (limited to 'src/libultra_code/osViGetCurrentFramebuffer.c')
| -rw-r--r-- | src/libultra_code/osViGetCurrentFramebuffer.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libultra_code/osViGetCurrentFramebuffer.c b/src/libultra_code/osViGetCurrentFramebuffer.c new file mode 100644 index 000000000..03aa515ae --- /dev/null +++ b/src/libultra_code/osViGetCurrentFramebuffer.c @@ -0,0 +1,13 @@ +#include <ultra64.h> +#include <global.h> + +u32* osViGetCurrentFramebuffer() { + register u32 sMask = __osDisableInt(); + u32* var1; + + var1 = __osViCurr->buffer; + + __osRestoreInt(sMask); + + return var1; +} |
