mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-08 12:17:05 -04:00
Port over fault.c from oot decomp
This commit is contained in:
@@ -6,13 +6,13 @@ void CIC6105_Nop80081820(void) {}
|
||||
void CIC6105_Nop80081828(void) {}
|
||||
|
||||
void CIC6105_PrintRomInfo(void) {
|
||||
FaultDraw_DrawText(80, 200, D_80098280, (UNK_PTR)(*(u32*)0xA4040010));
|
||||
FaultDraw_DrawText(40, 184, D_80098290, &D_800994D0);
|
||||
FaultDraw_DrawText(56, 192, D_800982A4, &D_800994DC);
|
||||
FaultDrawer_DrawText(80, 200, D_80098280, (UNK_PTR)(*(u32*)0xA4040010));
|
||||
FaultDrawer_DrawText(40, 184, D_80098290, &D_800994D0);
|
||||
FaultDrawer_DrawText(56, 192, D_800982A4, &D_800994DC);
|
||||
}
|
||||
|
||||
void CIC6105_AddRomInfoFaultPage(void) {
|
||||
Fault_AddClient(&romInfoFaultClient, (fault_client_func*)CIC6105_PrintRomInfo, 0, 0);
|
||||
Fault_AddClient(&romInfoFaultClient, (fault_client_func)CIC6105_PrintRomInfo, 0, 0);
|
||||
}
|
||||
|
||||
void CIC6105_RemoveRomInfoFaultPage(void) {
|
||||
|
||||
@@ -9,6 +9,6 @@ UNK_RET start(void) {
|
||||
osUnmapTLBAll();
|
||||
D_80096B40 = func_80092920();
|
||||
thread_info_init(&idleTreadInfo, idleStack, &idleStack[1024], 0, 256, idleThreadName);
|
||||
osCreateThread(&idleOSThread, 1, (osCreateThread_func*)Idle_ThreadEntry, 0, &idleTreadInfo, 12);
|
||||
osCreateThread(&idleOSThread, 1, (osCreateThread_func)Idle_ThreadEntry, 0, &idleTreadInfo, 12);
|
||||
osStartThread(&idleOSThread);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user