<feed xmlns='http://www.w3.org/2005/Atom'>
<title>oot/src/code/fault.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 remaining GC retail versions (#2019)</title>
<updated>2024-08-10T00:58:46+00:00</updated>
<author>
<name>cadmic</name>
<email>cadmic24@gmail.com</email>
</author>
<published>2024-08-10T00:58:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=d495436190f246c1e79ed6879206d59b2fab6fd4'/>
<id>d495436190f246c1e79ed6879206d59b2fab6fd4</id>
<content type='text'>
* Match the remaining GC retail versions

* Fix BSS ordering for existing versions

* Disable clang-format for #pragma increment_block_number

* sramResetCode -&gt; sSramResetCode

* Replace 0xFF3F with or-ing all buttons together

* Revert "Disable clang-format for #pragma increment_block_number"

This reverts commit 406b6d26c92911c676a7ea9f07a1612211760e11.

---------

Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Match the remaining GC retail versions

* Fix BSS ordering for existing versions

* Disable clang-format for #pragma increment_block_number

* sramResetCode -&gt; sSramResetCode

* Replace 0xFF3F with or-ing all buttons together

* Revert "Disable clang-format for #pragma increment_block_number"

This reverts commit 406b6d26c92911c676a7ea9f07a1612211760e11.

---------

Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>gc-us OK (#2018)</title>
<updated>2024-08-08T07:26:48+00:00</updated>
<author>
<name>cadmic</name>
<email>cadmic24@gmail.com</email>
</author>
<published>2024-08-08T07:26:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=1021c482afc9c7f6a97f50ac1bfd8493833cdc42'/>
<id>1021c482afc9c7f6a97f50ac1bfd8493833cdc42</id>
<content type='text'>
Match BSS order and delete disassembly data</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Match BSS order and delete disassembly data</pre>
</div>
</content>
</entry>
<entry>
<title>Automate fixing BSS ordering (#2009)</title>
<updated>2024-08-03T00:31:15+00:00</updated>
<author>
<name>cadmic</name>
<email>cadmic24@gmail.com</email>
</author>
<published>2024-08-03T00:31:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=0da402b9de9b6874a7e04f8e9e8333079f61a75e'/>
<id>0da402b9de9b6874a7e04f8e9e8333079f61a75e</id>
<content type='text'>
* Automate fixing BSS ordering

* Typo

* Some cleanups

* Move pragma check after printing BSS info

* Some proofreading

* multiprocessing, require version, some colors

* Tweak output

* Black + mypy

* Move logging and sys.exit out of helper functions

* Use stdout instead of stderr in fix_bss.py

* Add suggestion to conflicting offsets error

Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;

* Remove var = list[T]()

* Improve error handling

Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;

* Add error if no pointers to BSS

* Add comment about process_file_worker

* Only print updates if stdout is a tty

* Use new binary-search-esque candidate generation algorithm

Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;

* Add Wikipedia link

* More comment tweaks

---------

Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Automate fixing BSS ordering

* Typo

* Some cleanups

* Move pragma check after printing BSS info

* Some proofreading

* multiprocessing, require version, some colors

* Tweak output

* Black + mypy

* Move logging and sys.exit out of helper functions

* Use stdout instead of stderr in fix_bss.py

* Add suggestion to conflicting offsets error

Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;

* Remove var = list[T]()

* Improve error handling

Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;

* Add error if no pointers to BSS

* Add comment about process_file_worker

* Only print updates if stdout is a tty

* Use new binary-search-esque candidate generation algorithm

Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;

* Add Wikipedia link

* More comment tweaks

---------

Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Fix misc 22 (#1971)</title>
<updated>2024-06-24T22:39:08+00:00</updated>
<author>
<name>Dragorn421</name>
<email>Dragorn421@users.noreply.github.com</email>
</author>
<published>2024-06-24T22:39:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=2ce4742bf69faebb16ea1710c4d4e7902b1be0f1'/>
<id>2ce4742bf69faebb16ea1710c4d4e7902b1be0f1</id>
<content type='text'>
* remove trailing whitespace

* fix/docbug about dright for next page of fault menu

* // size = ...; -&gt; // size = ...

* access `ColliderJntSph.elements` as an array

* fixup doc in PreRender.c

* empty line after decl

* gdSPDefLights1 xyz arguments for direction are signed 8bit values

* doc bug of bad use of free in EffDust actor

* decimal for Actor.colorFilterTimer

* shopItemEntries -&gt; sShopItemEntries

* HEISHI4_AT_KAKRIKO_ENTRANCE -&gt; HEISHI4_AT_KAKARIKO_ENTRANCE

* format</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* remove trailing whitespace

* fix/docbug about dright for next page of fault menu

* // size = ...; -&gt; // size = ...

* access `ColliderJntSph.elements` as an array

* fixup doc in PreRender.c

* empty line after decl

* gdSPDefLights1 xyz arguments for direction are signed 8bit values

* doc bug of bad use of free in EffDust actor

* decimal for Actor.colorFilterTimer

* shopItemEntries -&gt; sShopItemEntries

* HEISHI4_AT_KAKRIKO_ENTRANCE -&gt; HEISHI4_AT_KAKARIKO_ENTRANCE

* format</pre>
</div>
</content>
</entry>
<entry>
<title>Experiment: remove global.h dependency from sys_math, sys_math3d, z_lib (#1956)</title>
<updated>2024-06-19T04:00:23+00:00</updated>
<author>
<name>mzxrules</name>
<email>mzxrules@gmail.com</email>
</author>
<published>2024-06-19T04:00:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=8d83727429602d422a524d00244f16f46ea8e70e'/>
<id>8d83727429602d422a524d00244f16f46ea8e70e</id>
<content type='text'>
* split sys_math, sys_math3d, z_lib from global.h

* suggestions

* forgot this

* more math stuff

* nit fix

* re-add ichain.h

* resolve tharo's comments</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* split sys_math, sys_math3d, z_lib from global.h

* suggestions

* forgot this

* more math stuff

* nit fix

* re-add ichain.h

* resolve tharo's comments</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>Filename &amp; line number args cleanup (#1891)</title>
<updated>2024-02-27T07:37:33+00:00</updated>
<author>
<name>Tharo</name>
<email>17233964+Thar0@users.noreply.github.com</email>
</author>
<published>2024-02-27T07:37:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=dcf61174e90725bea9aeeae9176fd377e0358188'/>
<id>dcf61174e90725bea9aeeae9176fd377e0358188</id>
<content type='text'>
* Filename &amp; line number args cleanup

* Use int for line number args over s32/u32

* Add missing const qualifiers from filename args

* Fix gcc warning in game.c

* Add comment to weird assignments in GameState_Init</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Filename &amp; line number args cleanup

* Use int for line number args over s32/u32

* Add missing const qualifiers from filename args

* Fix gcc warning in game.c

* Add comment to weird assignments in GameState_Init</pre>
</div>
</content>
</entry>
<entry>
<title>Apply noreturn attribute where applicable (#1532)</title>
<updated>2023-09-09T14:24:52+00:00</updated>
<author>
<name>Tharo</name>
<email>17233964+Thar0@users.noreply.github.com</email>
</author>
<published>2023-09-09T14:24:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=7235af2249843fb68740111b70089bad827a4730'/>
<id>7235af2249843fb68740111b70089bad827a4730</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
