1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-01-15 21:07:15 +00:00
oot/src/code
Dragorn421 68818044db
[ntsc-1.2] Decompile fault.c (#2046)
* wip decomp ntsc-1.2 fault.c

* more ntsc-1.2 fault.c

* decompiled fault_v1.c

* name fault_v1 functions, wip

* try to clean up build system (two versions of the fault system coexisting)

* cleanup

* cleanup2

* fix build gc-eu-mq-dbg

* match 2 more, ty anon

* matched

* review

* more review

* fixup spec

* `(uintptr_t)ptr op int` instead of `ptr op (type*)int`

* move fault.h out of global headers, properly include fault.h and versions.h

* compile all fault_*.c files regardless of version by overriding FAULT_VERSION

* n64 FaultMgr.framebuffer s32 -> u16*

* FaultMgr.framebuffer -> FaultMgr.fb

* make gc FaultMgr.fb u16* (yes, thats everything)

* bss

* fix Fault_Printf return type

* noop FaultDrawer_SetFontColor, FaultDrawer_SetCharPad in fault_n64

* fault_color_ stuff is only for fault_gc

* rm empty line in makefile

* I guess `D_80105A90_unknown` is `[sg]TotalAllocFailures`

* bss

* `Fault_WaitInput` -> `Fault_WaitForInput`

* use named fault funcs in pointers array

* FAULT_OOT{N64,GC} -> FAULT_{N64,GC}

* Apply suggestions from code review

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com>

* review, sync fault_{gc,n64}

* Apply `FPCSR_CE` suggestions from code review

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>

---------

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com>
2024-08-28 09:38:42 +02:00
..
__osMalloc.c [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
audio_stop_all_sfx.c Reorganize Audio Files & Name Remaining Audio Files (#1494) 2023-07-06 17:55:10 -04:00
audio_thread_manager.c [ntsc-1.2] Match a bunch of small stuff (#2094) 2024-08-27 09:33:20 +02:00
code_800BB0A0.c remove the extra `CS_CMD_STOP` (#1535) 2023-09-14 18:41:10 -04:00
code_800D31A0.c Match retail code_800D31A0.c (#1698) 2024-02-02 13:33:00 -05:00
code_800FC620.c More data fixes (#1929) 2024-03-23 12:30:09 -04:00
code_8006C3A0.c z_demo documentation (#1327) 2022-12-24 13:55:17 -05:00
code_80097A00.c T() macro 5 (#2089) 2024-08-27 14:32:33 +02:00
code_800430A0.c Misc Small Retail Files Part 2 OK (#1696) 2024-02-02 13:15:38 -05:00
code_80043480.c Misc Small Retail Files Part 2 OK (#1696) 2024-02-02 13:15:38 -05:00
code_80069420.c Move non-libultra libc functions to src/libc/ (#2055) 2024-08-20 01:15:24 -04:00
code_n64dd_800AD4C0.c [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
code_n64dd_800AD410.c [ntsc-1.2] Match z_std_dma.c (#2082) 2024-08-25 01:04:53 -04:00
db_camera.c Give debug_malloc.c the same treatment as system_malloc.c and z_malloc.c (#1700) 2024-02-03 10:59:25 -05:00
debug_malloc.c T() macro 5 (#2089) 2024-08-27 14:32:33 +02:00
fault_gc.c [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
fault_gc_drawer.c [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
fault_n64.c [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
flg_set.c Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
fp.s
fp_math.c Experiment: remove global.h dependency from sys_math, sys_math3d, z_lib (#1956) 2024-06-19 00:00:23 -04:00
game.c [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
gamealloc.c Filename & line number args cleanup (#1891) 2024-02-27 02:37:33 -05:00
gDPLoadTextureBlock_Runtime.inc.c Clean up custom LoadTextureBlock in z_map_mark.c and z_lmap_mark.c (#1896) 2024-07-17 17:35:37 -04:00
gfxalloc.c Gamealloc, Graph, and Graphalloc retail OK (#1675) 2024-01-31 19:07:12 -05:00
gfxprint.c Replace most osSyncPrintf calls with PRINTF macro (#1598) 2024-01-12 10:38:13 -05:00
graph.c [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
irqmgr.c T() macro 2 (#2073) 2024-08-23 14:53:32 -04:00
jpegdecoder.c Fix misc 21 (#1573) 2023-11-12 16:59:52 -05:00
jpegutils.c
kanread.s
listalloc.c Create debug macros for common functions (#1597) 2024-01-09 07:59:03 -05:00
load.c T() macro 5 (#2089) 2024-08-27 14:32:33 +02:00
loadfragment2.c Replace most osSyncPrintf calls with PRINTF macro (#1598) 2024-01-12 10:38:13 -05:00
logseverity.c
main.c [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
mempak.c Replace most osSyncPrintf calls with PRINTF macro (#1598) 2024-01-12 10:38:13 -05:00
mtxuty-cvt.c Create debug macros for LogUtils functions (#1610) 2024-01-16 09:59:02 -05:00
object_table.c Use Romfile in place of vromStart and vromEnd in structs (#1742) 2024-02-29 14:15:04 +01:00
padmgr.c [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
padsetup.c
padutils.c padutils.c, line numbers (#2040) 2024-08-14 22:13:23 -04:00
PreRender.c match PreRender_CopyImageRegionImpl (#2093) 2024-08-27 02:47:08 -04:00
printutils.c
rand.c Experiment: remove global.h dependency from sys_math, sys_math3d, z_lib (#1956) 2024-06-19 00:00:23 -04:00
rcp_utils.c Replace most osSyncPrintf calls with PRINTF macro (#1598) 2024-01-12 10:38:13 -05:00
relocation.c Overlay_Relocate and Overlay_Load retail OK (#1662) 2024-01-30 19:30:27 -05:00
sched.c [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
shrink_window.c Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
sleep.c
speed_meter.c [Audio 6/?] Build Soundfonts and the Soundfont Table (#2056) 2024-08-27 21:09:59 -04:00
sys_cfb.c [ntsc-1.2] Decompile cic6105.c, main.c (#2068) 2024-08-25 16:00:10 +02:00
sys_math.c Experiment: remove global.h dependency from sys_math, sys_math3d, z_lib (#1956) 2024-06-19 00:00:23 -04:00
sys_math3d.c T() macro 5 (#2089) 2024-08-27 14:32:33 +02:00
sys_math3d_draw.c Experiment: remove global.h dependency from sys_math, sys_math3d, z_lib (#1956) 2024-06-19 00:00:23 -04:00
sys_math_atan.c Experiment: remove global.h dependency from sys_math, sys_math3d, z_lib (#1956) 2024-06-19 00:00:23 -04:00
sys_matrix.c [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
sys_rumble.c Match retail padmgr.c and sys_rumble.c (#1693) 2024-02-02 12:25:44 -05:00
sys_ucode.c
system_malloc.c [ntsc-1.2] Match system_malloc.c (#2080) 2024-08-26 21:49:33 -04:00
title_setup.c Add T macro for translated debug strings (#2064) 2024-08-22 22:33:50 +02:00
TwoHeadArena.c TwoHeadArena and TwoHeadGfxArena docs (#1349) 2022-11-13 18:29:50 -05:00
TwoHeadGfxArena.c TwoHeadArena and TwoHeadGfxArena docs (#1349) 2022-11-13 18:29:50 -05:00
ucode_disas.c Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z_actor.c [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
z_actor_dlftbls.c [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
z_bgcheck.c T() macro 2 (#2073) 2024-08-23 14:53:32 -04:00
z_camera.c T() macro 3 (#2083) 2024-08-24 17:47:45 +02:00
z_camera_data.inc.c Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z_cheap_proc.inc.c Create debug macros for common functions (#1597) 2024-01-09 07:59:03 -05:00
z_collision_btltbls.c T() macro 5 (#2089) 2024-08-27 14:32:33 +02:00
z_collision_check.c [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
z_common_data.c Add all N64 version defines (#2095) 2024-08-26 11:43:59 -04:00
z_construct.c Add T macro for translated debug strings (#2064) 2024-08-22 22:33:50 +02:00
z_debug.c [ntsc-1.2] Decompile cic6105.c, main.c (#2068) 2024-08-25 16:00:10 +02:00
z_debug_display.c Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z_demo.c T() macro 4 (#2084) 2024-08-24 20:58:05 -04:00
z_DLF.c Add T macro for translated debug strings (#2064) 2024-08-22 22:33:50 +02:00
z_draw.c [ntsc-1.2] Match z_construct.c, z_draw.c, z_kaleido_setup.c and partially z_actor.c (#2039) 2024-08-14 22:05:41 -04:00
z_eff_blure.c T() macro 6 (#2090) 2024-08-27 17:10:07 +02:00
z_eff_shield_particle.c Match retail effects files in code (#1690) 2024-02-02 11:45:50 -05:00
z_eff_spark.c T() macro 6 (#2090) 2024-08-27 17:10:07 +02:00
z_eff_ss_dead.c [ntsc-1.2] Match a bunch of small stuff (#2094) 2024-08-27 09:33:20 +02:00
z_effect.c T() macro 4 (#2084) 2024-08-24 20:58:05 -04:00
z_effect_soft_sprite.c T() macro 6 (#2090) 2024-08-27 17:10:07 +02:00
z_effect_soft_sprite_dlftbls.c InitVars -> Profile (#2011) 2024-08-02 17:50:02 -04:00
z_effect_soft_sprite_old_init.c Doc/Cleanup pass on object handling (#1227) 2023-09-19 14:10:12 -04:00
z_elf_message.c Split SaveContext into sub-structs (#1393) 2023-08-13 15:24:26 -04:00
z_en_a_keep.c Generic actor params getters (#1359) 2024-08-14 21:29:43 +02:00
z_en_item00.c Generic actor params getters (#1359) 2024-08-14 21:29:43 +02:00
z_face_reaction.c Introduce Face Reaction Enum (#1586) 2024-01-08 17:17:22 -05:00
z_fbdemo.c Match `z_fbdemo.c and z_fbdemo_fade.c` for NTSC-1.2 (#2031) 2024-08-11 21:12:27 -04:00
z_fbdemo_circle.c Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z_fbdemo_fade.c T() macro 5 (#2089) 2024-08-27 14:32:33 +02:00
z_fbdemo_triforce.c Replace most osSyncPrintf calls with PRINTF macro (#1598) 2024-01-12 10:38:13 -05:00
z_fbdemo_wipe1.c [ntsc-1.2] Match a bunch of small stuff (#2094) 2024-08-27 09:33:20 +02:00
z_fcurve_data.c
z_fcurve_data_skelanime.c T() macro 5 (#2089) 2024-08-27 14:32:33 +02:00
z_frame_advance.c Move PlayState to a new z64play.h (#1966) 2024-06-25 15:13:31 -04:00
z_game_dlftbls.c Use Romfile in place of vromStart and vromEnd in structs (#1742) 2024-02-29 14:15:04 +01:00
z_game_over.c Move PlayState to a new z64play.h (#1966) 2024-06-25 15:13:31 -04:00
z_horse.c T() macro 6 (#2090) 2024-08-27 17:10:07 +02:00
z_jpeg.c T() macro 6 (#2090) 2024-08-27 17:10:07 +02:00
z_kaleido_manager.c Add T macro for translated debug strings (#2064) 2024-08-22 22:33:50 +02:00
z_kaleido_scope_call.c T() macro 3 (#2083) 2024-08-24 17:47:45 +02:00
z_kaleido_setup.c [ntsc-1.2] Match z_kaleido_debug.c, z_lmap_mark.c (#2077) 2024-08-24 08:18:48 -04:00
z_kanfont.c Match NTSC z_kanfont.c and z_message.c (#1997) 2024-07-21 21:50:20 -04:00
z_kankyo.c T() macro 4 (#2084) 2024-08-24 20:58:05 -04:00
z_lib.c Move non-libultra libc functions to src/libc/ (#2055) 2024-08-20 01:15:24 -04:00
z_lifemeter.c Create debug macros for common functions (#1597) 2024-01-09 07:59:03 -05:00
z_lights.c Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z_malloc.c T() macro 6 (#2090) 2024-08-27 17:10:07 +02:00
z_map_data.c
z_map_exp.c T() macro 3 (#2083) 2024-08-24 17:47:45 +02:00
z_map_mark.c Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z_message.c [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
z_moji.c Replace most osSyncPrintf calls with PRINTF macro (#1598) 2024-01-12 10:38:13 -05:00
z_nulltask.c
z_olib.c Experiment: remove global.h dependency from sys_math, sys_math3d, z_lib (#1956) 2024-06-19 00:00:23 -04:00
z_onepointdemo.c Match the rest of z_onepointdemo.c (#1739) 2024-02-09 13:26:20 -05:00
z_parameter.c [ntsc-1.2] Match a bunch of small stuff (#2094) 2024-08-27 09:33:20 +02:00
z_path.c
z_play.c [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
z_player_call.c [ntsc-1.2] Decompile cic6105.c, main.c (#2068) 2024-08-25 16:00:10 +02:00
z_player_lib.c Match ntsc-1.2 z_scene_table.c (#2050) 2024-08-19 10:24:02 +02:00
z_prenmi.c Replace most osSyncPrintf calls with PRINTF macro (#1598) 2024-01-12 10:38:13 -05:00
z_prenmi_buff.c
z_quake.c Move non-libultra libc functions to src/libc/ (#2055) 2024-08-20 01:15:24 -04:00
z_rcp.c rcp retail OK (#1713) 2024-02-05 11:35:27 -05:00
z_room.c T() macro 3 (#2083) 2024-08-24 17:47:45 +02:00
z_rumble.c
z_sample.c Create debug macros for common functions (#1597) 2024-01-09 07:59:03 -05:00
z_scene.c T() macro 2 (#2073) 2024-08-23 14:53:32 -04:00
z_scene_table.c [ntsc-1.2] Match z_kaleido_debug.c, z_lmap_mark.c (#2077) 2024-08-24 08:18:48 -04:00
z_sfx_source.c Move PlayState to a new z64play.h (#1966) 2024-06-25 15:13:31 -04:00
z_skelanime.c T() macro 6 (#2090) 2024-08-27 17:10:07 +02:00
z_skin.c [ntsc-1.2] Decompile cic6105.c, main.c (#2068) 2024-08-25 16:00:10 +02:00
z_skin_awb.c Match retail z_skin.c, z_skin_awb.c, z_skin_matrix.c (#1697) 2024-02-02 13:29:58 -05:00
z_skin_matrix.c Fixup printf args fake matches (#2049) 2024-08-17 22:42:09 +02:00
z_sram.c T() macro 4 (#2084) 2024-08-24 20:58:05 -04:00
z_ss_sram.c Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z_view.c T() macro 5 (#2089) 2024-08-27 14:32:33 +02:00
z_vimode.c Replace most osSyncPrintf calls with PRINTF macro (#1598) 2024-01-12 10:38:13 -05:00
z_viscvg.c Document Framebuffer Filters, VisCvg and VisZbuf (#1534) 2023-09-16 17:16:58 -04:00
z_vismono.c [ntsc-1.2] Match z_vismono.c (#2091) 2024-08-26 20:14:50 +02:00
z_viszbuf.c Match ntsc-1.2 z_skelanime.c, z_view.c, z_viszbuf.c (#2041) 2024-08-15 03:54:06 -04:00
z_vr_box.c Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z_vr_box_draw.c Create debug macros for common functions (#1597) 2024-01-09 07:59:03 -05:00