1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-05-11 19:43:44 +00:00
oot/include
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
..
audio [Audio 6/?] Build Soundfonts and the Soundfont Table (#2056) 2024-08-27 21:09:59 -04:00
libc Add NO_SQRTF_INTRINSIC for z_rumble.c and audio/general.c (#2067) 2024-08-23 03:11:41 -04:00
tables Use Romfile in place of vromStart and vromEnd in structs (#1742) 2024-02-29 14:15:04 +01:00
ultra64 Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
alignment.h Remove gSystemHeap and use _buffersSegmentEnd instead, make buffer alignments explicit for gcc (#1901) 2024-02-27 19:01:47 -05:00
attributes.h [Audio 6/?] Build Soundfonts and the Soundfont Table (#2056) 2024-08-27 21:09:59 -04:00
audiomgr.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
audiothread_cmd.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
boot.h Improve the state of handwritten assembly files (#865) 2022-05-01 01:03:22 +02:00
cic6105.h [ntsc-1.2] Decompile cic6105.c, main.c (#2068) 2024-08-25 16:00:10 +02:00
color.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
command_macros_base.h Misc. doc/cleanup 5 (#1096) 2022-01-12 15:48:04 -05:00
face_change.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
fault.h [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
fp_math.h Experiment: remove global.h dependency from sys_math, sys_math3d, z_lib (#1956) 2024-06-19 00:00:23 -04:00
functions.h Match more ntsc-1.2 overlay draw functions (#2061) 2024-08-20 16:22:05 -04:00
gfx.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
gfxprint.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
global.h Fix all headers to comply with C standard (#957) 2021-09-15 19:24:19 -04:00
ichain.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
irqmgr.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
jpeg.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
macro.inc Rework disassembly: out of makefile, separate sections, relocs (#1728) 2024-02-12 20:20:25 -05:00
macros.h Match functions using gDPSetTileCustom (#2100) 2024-08-27 17:08:41 -04:00
mempak.h Mempak doc (#1382) 2022-11-16 02:32:07 -05:00
message_data_fmt.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
message_data_static.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
n64dd.h [ntsc-1.2] Match z_std_dma.c (#2082) 2024-08-25 01:04:53 -04:00
padmgr.h [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
prerender.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
quake.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
rand.h Experiment: remove global.h dependency from sys_math, sys_math3d, z_lib (#1956) 2024-06-19 00:00:23 -04:00
region.h Introduce OOT_VERSION and OOT_REGION defines for build info and ROM header (#2003) 2024-07-28 00:46:55 -04:00
regs.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
romfile.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
rumble.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
sched.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
segment_symbols.h Allow building the Debug ROM without debug features (#2052) 2024-08-19 23:58:31 +02:00
seqcmd.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
sequence.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
sfx.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
speedmeter.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
sys_math.h Experiment: remove global.h dependency from sys_math, sys_math3d, z_lib (#1956) 2024-06-19 00:00:23 -04:00
sys_math3d.h Experiment: remove global.h dependency from sys_math, sys_math3d, z_lib (#1956) 2024-06-19 00:00:23 -04:00
terminal.h Restore terminal colors in retail, except in __osMalloc.c (#1899) 2024-02-27 14:08:20 -05:00
tha.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
thga.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
ultra64.h libc cleanup (#1568) 2023-10-27 16:06:44 +02:00
unk.h Fix all headers to comply with C standard (#957) 2021-09-15 19:24:19 -04:00
variables.h [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
versions.h [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
z64.h [ntsc-1.2] Decompile fault.c (#2046) 2024-08-28 09:38:42 +02:00
z64actor.h Generic actor params getters (#1359) 2024-08-14 21:29:43 +02:00
z64animation.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64animation_legacy.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64audio.h [Audio 6/?] Build Soundfonts and the Soundfont Table (#2056) 2024-08-27 21:09:59 -04:00
z64bgcheck.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64camera.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64collision_check.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64curve.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64cutscene.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64cutscene_commands.h Extract unused scene headers (#1930) 2024-03-23 12:38:05 -04:00
z64dma.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64effect.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64environment.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64frame_advance.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64game.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64game_over.h Move PlayState to a new z64play.h (#1966) 2024-06-25 15:13:31 -04:00
z64interface.h [ntsc-1.2] Match a bunch of small stuff (#2094) 2024-08-27 09:33:20 +02:00
z64item.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64light.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64map_mark.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64math.h Add DEG_TO_BINANG2/RAD_TO_BINANG2 to match ntsc-1.2 z_en_gs.c, z_en_mm.c, z_en_toryo.c (#2047) 2024-08-18 21:55:25 -04:00
z64message.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64object.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64ocarina.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64pause.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64play.h Move PlayState to a new z64play.h (#1966) 2024-06-25 15:13:31 -04:00
z64player.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64quest_hint_commands.h Document elf_message scripting system (#1398) 2022-10-15 13:24:13 -04:00
z64save.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64scene.h Match ntsc-1.2 z_scene_table.c (#2050) 2024-08-19 10:24:02 +02:00
z64sfx_source.h Move PlayState to a new z64play.h (#1966) 2024-06-25 15:13:31 -04:00
z64skin.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64skybox.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64sram.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64transition.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64transition_instances.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64view.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z64vis.h Add names to all typedef'd structs, unions, and enums (#2028) 2024-08-12 03:07:48 -04:00
z_lib.h Experiment: remove global.h dependency from sys_math, sys_math3d, z_lib (#1956) 2024-06-19 00:00:23 -04:00