<feed xmlns='http://www.w3.org/2005/Atom'>
<title>oot/src/code/fault_drawer.c, branch main</title>
<subtitle>Decompilation of The Legend of Zelda: Ocarina of Time</subtitle>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/'/>
<entry>
<title>[ntsc-1.2] Decompile fault.c (#2046)</title>
<updated>2024-08-28T07:38:42+00:00</updated>
<author>
<name>Dragorn421</name>
<email>Dragorn421@users.noreply.github.com</email>
</author>
<published>2024-08-28T07:38:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=68818044db4f6c644ca8be80f0ad4b54a7587f44'/>
<id>68818044db4f6c644ca8be80f0ad4b54a7587f44</id>
<content type='text'>
* 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 -&gt; u16*

* FaultMgr.framebuffer -&gt; 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` -&gt; `Fault_WaitForInput`

* use named fault funcs in pointers array

* FAULT_OOT{N64,GC} -&gt; FAULT_{N64,GC}

* Apply suggestions from code review

Co-authored-by: Derek Hensley &lt;hensley.derek58@gmail.com&gt;
Co-authored-by: Anghelo Carvajal &lt;angheloalf95@gmail.com&gt;

* review, sync fault_{gc,n64}

* Apply `FPCSR_CE` suggestions from code review

Co-authored-by: Derek Hensley &lt;hensley.derek58@gmail.com&gt;

---------

Co-authored-by: Derek Hensley &lt;hensley.derek58@gmail.com&gt;
Co-authored-by: Anghelo Carvajal &lt;angheloalf95@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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 -&gt; u16*

* FaultMgr.framebuffer -&gt; 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` -&gt; `Fault_WaitForInput`

* use named fault funcs in pointers array

* FAULT_OOT{N64,GC} -&gt; FAULT_{N64,GC}

* Apply suggestions from code review

Co-authored-by: Derek Hensley &lt;hensley.derek58@gmail.com&gt;
Co-authored-by: Anghelo Carvajal &lt;angheloalf95@gmail.com&gt;

* review, sync fault_{gc,n64}

* Apply `FPCSR_CE` suggestions from code review

Co-authored-by: Derek Hensley &lt;hensley.derek58@gmail.com&gt;

---------

Co-authored-by: Derek Hensley &lt;hensley.derek58@gmail.com&gt;
Co-authored-by: Anghelo Carvajal &lt;angheloalf95@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Add names to all typedef'd structs, unions, and enums (#2028)</title>
<updated>2024-08-12T07:07:48+00:00</updated>
<author>
<name>cadmic</name>
<email>cadmic24@gmail.com</email>
</author>
<published>2024-08-12T07:07:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=e6bc4bd8cb66b2e7b946829b3892fd0d2967fde3'/>
<id>e6bc4bd8cb66b2e7b946829b3892fd0d2967fde3</id>
<content type='text'>
* Add names to all typedef'd structs, unions, and enums

* wtf vs code

* Use a better regex</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add names to all typedef'd structs, unions, and enums

* wtf vs code

* Use a better regex</pre>
</div>
</content>
</entry>
<entry>
<title>Match retail BSS ordering (#1927)</title>
<updated>2024-04-14T21:51:32+00:00</updated>
<author>
<name>cadmic</name>
<email>cadmic24@gmail.com</email>
</author>
<published>2024-04-14T21:51:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=f643499462f8cf908ddf1ee77b5625ebaff2cf25'/>
<id>f643499462f8cf908ddf1ee77b5625ebaff2cf25</id>
<content type='text'>
* Match retail BSS ordering

* Revert moving some global variables to headers

* Adjust block numbers after header changes

* Fix debug build

* Overlay bss ordering

* Fix BSS ordering after header changes

* gc-eu-mq OK

* Implement preprocessor for #pragma increment_block_number

* Transfer usage comment from reencode.sh

* Use temporary directory instead of temporary file

* Move ColChkMassType back</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Match retail BSS ordering

* Revert moving some global variables to headers

* Adjust block numbers after header changes

* Fix debug build

* Overlay bss ordering

* Fix BSS ordering after header changes

* gc-eu-mq OK

* Implement preprocessor for #pragma increment_block_number

* Transfer usage comment from reencode.sh

* Use temporary directory instead of temporary file

* Move ColChkMassType back</pre>
</div>
</content>
</entry>
<entry>
<title>Match retail code data sizes (#1741)</title>
<updated>2024-02-27T07:23:19+00:00</updated>
<author>
<name>cadmic</name>
<email>cadmic24@gmail.com</email>
</author>
<published>2024-02-27T07:23:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=c6e3ef4570486b12f60d2fc18430a54cccf3d6eb'/>
<id>c6e3ef4570486b12f60d2fc18430a54cccf3d6eb</id>
<content type='text'>
* Match retail audio data

* Fix various small code data problems

* Disable terminal colors in debug builds

* Match z_actor_dlftbls.c .rodata

* Use _3 for unused nameString macro parameter

* Move sDebugCutsceneScriptBuf to be in-function static

* Comment on actor name being NULL

* Split out padding the fault_drawer.bss.s</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Match retail audio data

* Fix various small code data problems

* Disable terminal colors in debug builds

* Match z_actor_dlftbls.c .rodata

* Use _3 for unused nameString macro parameter

* Move sDebugCutsceneScriptBuf to be in-function static

* Comment on actor name being NULL

* Split out padding the fault_drawer.bss.s</pre>
</div>
</content>
</entry>
<entry>
<title>libc cleanup (#1568)</title>
<updated>2023-10-27T14:06:44+00:00</updated>
<author>
<name>Tharo</name>
<email>17233964+Thar0@users.noreply.github.com</email>
</author>
<published>2023-10-27T14:06:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=3475651701f991b636a74e0254ef1b9682fa1126'/>
<id>3475651701f991b636a74e0254ef1b9682fa1126</id>
<content type='text'>
* libc cleanup

* Suggested changes, small alloca tweak

* Remove printf include</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* libc cleanup

* Suggested changes, small alloca tweak

* Remove printf include</pre>
</div>
</content>
</entry>
<entry>
<title>Import fault bss under NON_MATCHING (#1484)</title>
<updated>2023-01-02T10:52:56+00:00</updated>
<author>
<name>Tharo</name>
<email>17233964+Thar0@users.noreply.github.com</email>
</author>
<published>2023-01-02T10:52:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=e77b83cf1b76fa4a3774e10e554300adfb1c76ce'/>
<id>e77b83cf1b76fa4a3774e10e554300adfb1c76ce</id>
<content type='text'>
* Import fault bss under NON_MATCHING

* Fix comments in data files

* Fix variable name</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Import fault bss under NON_MATCHING

* Fix comments in data files

* Fix variable name</pre>
</div>
</content>
</entry>
<entry>
<title>Rename `vt.h` to `terminal.h` (#1339)</title>
<updated>2022-11-01T23:17:11+00:00</updated>
<author>
<name>Dragorn421</name>
<email>Dragorn421@users.noreply.github.com</email>
</author>
<published>2022-11-01T23:17:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=ab9030006220d756753b3d8eb914777872c586b2'/>
<id>ab9030006220d756753b3d8eb914777872c586b2</id>
<content type='text'>
* `vt.h` -&gt; `terminal.h`

* `VT_` -&gt; `T_` (as in Terminal)

* `vt.h` -&gt; `terminal.h` in includes too Pepega

* Sort out tiny terminal.h include inconsistencies

* Format

* -&gt; `TE_`

* format

* `TE_` -&gt; back to `VT_` (parkour!)

* explicit VT</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* `vt.h` -&gt; `terminal.h`

* `VT_` -&gt; `T_` (as in Terminal)

* `vt.h` -&gt; `terminal.h` in includes too Pepega

* Sort out tiny terminal.h include inconsistencies

* Format

* -&gt; `TE_`

* format

* `TE_` -&gt; back to `VT_` (parkour!)

* explicit VT</pre>
</div>
</content>
</entry>
<entry>
<title>Move fault_drawer bss to data/ asm because -g3 bss is fun (#1335)</title>
<updated>2022-07-30T14:09:42+00:00</updated>
<author>
<name>Dragorn421</name>
<email>Dragorn421@users.noreply.github.com</email>
</author>
<published>2022-07-30T14:09:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=2f5eac6b762b9ae2d6f0da98fc8ef914a3d6e51d'/>
<id>2f5eac6b762b9ae2d6f0da98fc8ef914a3d6e51d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Documentation for fault.c and fault_drawer.c (#1106)</title>
<updated>2022-02-02T21:43:34+00:00</updated>
<author>
<name>Tharo</name>
<email>17233964+Thar0@users.noreply.github.com</email>
</author>
<published>2022-02-02T21:43:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=c8f4d66b009ad400f54538d6293afd5971c87776'/>
<id>c8f4d66b009ad400f54538d6293afd5971c87776</id>
<content type='text'>
* Mostly document fault and fault_drawer

* FaultDrawer printf functions return s32

* Review Suggestions for comments

Co-authored-by: EllipticEllipsis &lt;73679967+EllipticEllipsis@users.noreply.github.com&gt;

* Some further review suggestions

* Further changes from suggestions

* Fix Fault_AddClient doc comment

* Bug comment for memdump overrun, add more to Fault_PadCallback bug comment

* mb -&gt; MB, comment about bss above externs

* Fix color codes

Co-authored-by: EllipticEllipsis &lt;73679967+EllipticEllipsis@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Mostly document fault and fault_drawer

* FaultDrawer printf functions return s32

* Review Suggestions for comments

Co-authored-by: EllipticEllipsis &lt;73679967+EllipticEllipsis@users.noreply.github.com&gt;

* Some further review suggestions

* Further changes from suggestions

* Fix Fault_AddClient doc comment

* Bug comment for memdump overrun, add more to Fault_PadCallback bug comment

* mb -&gt; MB, comment about bss above externs

* Fix color codes

Co-authored-by: EllipticEllipsis &lt;73679967+EllipticEllipsis@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Misc Cleanup 2 (#1007)</title>
<updated>2021-11-30T23:40:42+00:00</updated>
<author>
<name>Dragorn421</name>
<email>Dragorn421@users.noreply.github.com</email>
</author>
<published>2021-11-30T23:40:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=669732abbe78ad6dad6b5f7273f595befd630cba'/>
<id>669732abbe78ad6dad6b5f7273f595befd630cba</id>
<content type='text'>
* Cleanup `UNK_TYPE`, `UNK_PTR` usage

* Add some missing empty lines after declarations

* Remove some legacy comments from non-matching times

* Fix some grammar (mostly "it's"/"its")

* Use proper names for two symbols after ZAPD bugfix

* Cleanup `place_title_cards.xml`

* Use `NULL` to check against `D_8012D260` pointer

* Parentheses around some macro arguments

* wip proofread headers up to z64animation.h</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Cleanup `UNK_TYPE`, `UNK_PTR` usage

* Add some missing empty lines after declarations

* Remove some legacy comments from non-matching times

* Fix some grammar (mostly "it's"/"its")

* Use proper names for two symbols after ZAPD bugfix

* Cleanup `place_title_cards.xml`

* Use `NULL` to check against `D_8012D260` pointer

* Parentheses around some macro arguments

* wip proofread headers up to z64animation.h</pre>
</div>
</content>
</entry>
</feed>
