diff options
| author | Lucas Shaw <49287729+shawlucas@users.noreply.github.com> | 2020-04-22 10:20:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-22 13:20:49 -0400 |
| commit | 3c440ef7f1172f49aba2618922cd401155392599 (patch) | |
| tree | 9a5fdef4dcdadc9d472a4610196aa4cb7c8ebede /src/libultra_code/osViSetEvent.c | |
| parent | 06b731c494b44e71422231872750acc35445392c (diff) | |
Finished code_801031F0.c, guPosition.c, guLookAtHilite.c (#84)
* started microcode decomp
* Modified spec to fix error
* osContGetQuery OK
* Decompiled guLookAtHilite.c
* guPosition.c OK
* Fixed formatting
* osViSetEvent.c OK
* Deleted unnecessary files
* Made suggested changes, merged playblack.c
* Removed line breaks from comments
* Removed argument listing
Diffstat (limited to 'src/libultra_code/osViSetEvent.c')
| -rw-r--r-- | src/libultra_code/osViSetEvent.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libultra_code/osViSetEvent.c b/src/libultra_code/osViSetEvent.c new file mode 100644 index 000000000..1c042dc27 --- /dev/null +++ b/src/libultra_code/osViSetEvent.c @@ -0,0 +1,12 @@ +#include "libultra_internal.h" + +extern OSViContext* __osViNext; + +void osViSetEvent(OSMesgQueue* mq, OSMesg msg, u32 retraceCount) { + register u32 saveMask; + saveMask = __osDisableInt(); + __osViNext->mq = mq; + __osViNext->msg = msg; + __osViNext->retraceCount = retraceCount; + __osRestoreInt(saveMask); +} |
