mirror of
https://github.com/zeldaret/af.git
synced 2026-10-05 00:47:39 -04:00
6389d06ee4
* ovlmgr OK * sprintf * Remove UNUSED from header
93 lines
2.9 KiB
C
93 lines
2.9 KiB
C
#ifndef FAULT_H
|
|
#define FAULT_H
|
|
|
|
#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(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();
|
|
// void Fault_UpdatePadImpl();
|
|
// void Fault_WaitForInputImpl();
|
|
// void Fault_WaitForInput();
|
|
// void Fault_DrawRec();
|
|
// void Fault_FillScreenBlack();
|
|
// void Fault_FillScreenRed();
|
|
// void Fault_DrawCornerRec();
|
|
// void Fault_PrintFReg();
|
|
// void Fault_LogFReg();
|
|
// void Fault_PrintFPCSR();
|
|
// void Fault_LogFPCSR();
|
|
// void Fault_PrintThreadContext();
|
|
// void Fault_LogThreadContext();
|
|
// void Fault_FindFaultedThread();
|
|
// void Fault_Wait5Seconds();
|
|
// void Fault_WaitForButtonCombo();
|
|
// void Fault_DrawMemDumpContents();
|
|
// void Fault_DrawMemDump();
|
|
// void Fault_WalkStack();
|
|
// void Fault_DrawStackTrace();
|
|
// void Fault_LogStackTrace();
|
|
// void Fault_ResumeThread();
|
|
// void Fault_DisplayFrameBuffer();
|
|
// void Fault_ProcessClients();
|
|
// void Fault_UpdatePad();
|
|
// void Fault_ThreadEntry();
|
|
// void Fault_SetFrameBuffer();
|
|
// void Fault_Init();
|
|
// void Fault_HungupFaultClient();
|
|
NORETURN void Fault_AddHungupAndCrashImpl(const char* exp1, const char* exp2);
|
|
// NORETURN void Fault_AddHungupAndCrash();
|
|
|
|
// void FaultDrawer_SetOsSyncPrintfEnabled();
|
|
// void FaultDrawer_DrawRecImpl();
|
|
// void FaultDrawer_DrawChar();
|
|
// void FaultDrawer_ColorToPrintColor();
|
|
// void FaultDrawer_UpdatePrintColor();
|
|
// void FaultDrawer_SetForeColor();
|
|
// void FaultDrawer_SetBackColor();
|
|
void FaultDrawer_SetFontColor(u16 color);
|
|
void FaultDrawer_SetCharPad(s8 padW, s8 padH);
|
|
// void FaultDrawer_SetCursor();
|
|
// void FaultDrawer_FillScreen();
|
|
// void FaultDrawer_PrintCallback();
|
|
// void FaultDrawer_VPrintf();
|
|
void FaultDrawer_Printf(const char* fmt, ...);
|
|
// void FaultDrawer_DrawText();
|
|
// void FaultDrawer_SetDrawerFB();
|
|
// void FaultDrawer_SetInputCallback();
|
|
// void FaultDrawer_WritebackFBDCache();
|
|
// void FaultDrawer_Init();
|
|
|
|
#endif
|