diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2023-08-05 10:58:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-05 10:58:09 -0400 |
| commit | 94b300b0d0e228dc38dcb08ca160334fa2ba128f (patch) | |
| tree | c818f04c5948982e0c3932cb04fe4c4575fb9889 /include/fault.h | |
| parent | 5b54707958ca7fe5455436cf732cdf034232cd50 (diff) | |
`m_actor_dlftbls.c` (#32)
* start
* match the file
* actor_dlftbls_num
* script to extract the actor table
* bootstrap actor table
* ActorId enum
* migrate actor table
* reorganize overlays in subfolders
* Fix Player
* migrate bss
* cleanup and format
* ActorProfile
* Move player_actor to actors folder
* RomOffset
* ACTOR_ID_MAX
Diffstat (limited to 'include/fault.h')
| -rw-r--r-- | include/fault.h | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/include/fault.h b/include/fault.h index 794d648..9c90b98 100644 --- a/include/fault.h +++ b/include/fault.h @@ -3,15 +3,37 @@ #include "ultra64.h" #include "attributes.h" +#include "libc/stdint.h" + + +typedef void (*FaultClientCallback)(void*, void*); + +// TODO: taken from MM, needs to be verified +typedef struct FaultClient { + /* 0x0 */ struct FaultClient* next; + /* 0x4 */ FaultClientCallback callback; + /* 0x8 */ void* arg0; + /* 0xC */ void* arg1; +} FaultClient; // size = 0x10 + + +typedef uintptr_t (*FaultAddrConvClientCallback)(uintptr_t, void*); + +// TODO: taken from MM, needs to be verified +typedef struct FaultAddrConvClient { + /* 0x0 */ struct FaultAddrConvClient* next; + /* 0x4 */ FaultAddrConvClientCallback callback; + /* 0x8 */ void* arg; +} FaultAddrConvClient; // size = 0xC // void Fault_SleepImpl(); // void Fault_ClientProcessThread(); // void Fault_ClientRunTask(); // void Fault_ProcessClient(); -// void Fault_AddClient(); -// void Fault_RemoveClient(); -// void Fault_AddAddrConvClient(); -// void Fault_RemoveAddrConvClient(); +void Fault_AddClient(FaultClient* client, FaultClientCallback callback, void* arg0, void* arg1); +void Fault_RemoveClient(FaultClient* client); +void Fault_AddAddrConvClient(FaultAddrConvClient* client, FaultAddrConvClientCallback callback, void* arg); +void Fault_RemoveAddrConvClient(FaultAddrConvClient* client); // void Fault_ConvertAddress(); // void Fault_Sleep(); // void Fault_PadCallback(); @@ -55,7 +77,7 @@ // void FaultDrawer_SetForeColor(); // void FaultDrawer_SetBackColor(); void FaultDrawer_SetFontColor(u16 color); -// void FaultDrawer_SetCharPad(); +void FaultDrawer_SetCharPad(s8 padW, s8 padH); // void FaultDrawer_SetCursor(); // void FaultDrawer_FillScreen(); // void FaultDrawer_PrintCallback(); |
