Match Libultra (#120)

* Matched perspective, contquery, contreaddata, recvmesg and sendmesg

* Fixed libultra compilation flags

* Matched viblack

* Matched virepeatline, visetmode, visetspecial and viswapbuf

* Matched cartrominit, dpsetstat, sptask, sptaskyield, visetevent, createthread, gettime, setthreadpri, settime, settimer and starthread

* Fixed bss bs

* Matched even more libultra stuff

* Matched even more

* __osRdbSend

* Decompiled most of the functions of libultra <3

* Matched last functions

* Added a separation to libultra macros

* Removed ARRLEN from controller.h

* Fix libultra warnings

---------

Co-authored-by: Alejandro Javier Asenjo Nitti <alejandro.asenjo88@gmail.com>
This commit is contained in:
Lywx
2024-02-14 09:24:31 -06:00
committed by GitHub
parent ff2627c1ca
commit 902dc0b829
138 changed files with 10087 additions and 1430 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
#ifndef _CONTROLLER_H
#define _CONTROLLER_H
#include "macros.h"
#include "PR/ultratypes.h"
#include "PR/os_internal.h"
#include "PR/os_version.h"
#include "PR/rcp.h"
//should go somewhere else but
#define ARRLEN(x) ((s32)(sizeof(x) / sizeof(x[0])))
#define CHNL_ERR(format) (((format).rxsize & CHNL_ERR_MASK) >> 4)
typedef struct