<feed xmlns='http://www.w3.org/2005/Atom'>
<title>oot/tools/preprocess.py, 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>Rewrite preprocess.py with bash and C (#2035)</title>
<updated>2024-08-14T08:05:36+00:00</updated>
<author>
<name>Dragorn421</name>
<email>Dragorn421@users.noreply.github.com</email>
</author>
<published>2024-08-14T08:05:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=91a534cbc9cb4e0b7e5a1198731b1b66972e7b43'/>
<id>91a534cbc9cb4e0b7e5a1198731b1b66972e7b43</id>
<content type='text'>
* add C preprocess_pragmas and Bash preprocess

* "line return" -&gt; newline

* align tools sources

* fix: handle files that are not newline-terminated

* use a temp directory with a same-basename file instead of a temp file

* macos compat

* remove debug code</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* add C preprocess_pragmas and Bash preprocess

* "line return" -&gt; newline

* align tools sources

* fix: handle files that are not newline-terminated

* use a temp directory with a same-basename file instead of a temp file

* macos compat

* remove debug code</pre>
</div>
</content>
</entry>
<entry>
<title>Handle multiline `#pragma increment_block_number` (#2023)</title>
<updated>2024-08-10T00:13:59+00:00</updated>
<author>
<name>Dragorn421</name>
<email>Dragorn421@users.noreply.github.com</email>
</author>
<published>2024-08-10T00:13:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=cd2264f0180268c2c42351a96090769187ac5b18'/>
<id>cd2264f0180268c2c42351a96090769187ac5b18</id>
<content type='text'>
* Handle multiline #pragma increment_block_number

* fix: align all continuation characters vertically

* simplify continuation line character alignment

* Update tools/fix_bss.py

Co-authored-by: cadmic &lt;cadmic24@gmail.com&gt;

---------

Co-authored-by: cadmic &lt;cadmic24@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Handle multiline #pragma increment_block_number

* fix: align all continuation characters vertically

* simplify continuation line character alignment

* Update tools/fix_bss.py

Co-authored-by: cadmic &lt;cadmic24@gmail.com&gt;

---------

Co-authored-by: cadmic &lt;cadmic24@gmail.com&gt;</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>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>
</feed>
