<feed xmlns='http://www.w3.org/2005/Atom'>
<title>oot/src/code/z_play.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>Document `Save.cutsceneIndex` and adjacent data / code (#2286)</title>
<updated>2025-06-17T13:54:52+00:00</updated>
<author>
<name>Leonid Kapitonov</name>
<email>Feacur@gmail.com</email>
</author>
<published>2025-06-17T13:54:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=b11fdab792f1e7c4b71cfa7568963fad1c7d742d'/>
<id>b11fdab792f1e7c4b71cfa7568963fad1c7d742d</id>
<content type='text'>
* introduce `enum CutsceneIndex` as a first step

* crudely rename `enum CutsceneIndex` entries

* run `check_format.py ...` separetely

so that it doesn't clutter previous commit. still, allowing `clangd LSP` to run format-on-save yields inconsistent results for me with the project's tooling, especially for header files

* apply a draft PR suggestion

Co-authored-by: mzxrules &lt;mzxrules@gmail.com&gt;

* rename `CS_INDEX_*` with PR suggestions

and some additional observations
reverified with
&gt; `check_format.py ...`
&gt; `make ...`

additionally:
- current clang-format lacks a rule for trailing commas
- compiler says about them `cfe: Warning 624`

* improve `CS_INDEX_*` naming, rem `ENTRANCE` suffix

https://github.com/zeldaret/oot/pull/2286#discussion_r1829165205

reverified with
&gt; `check_format.py ...`
&gt; `make ...`

* apply Jenkins fixes

https://jenkins.deco.mp/job/OOT/job/PR-2286/4/console

hmm, i do need this automation locally to

* apply a PR suggestion

https://github.com/zeldaret/oot/pull/2286#discussion_r1829219841

* remove redundant comments, fix the header comment

and add a comment chunk from https://github.com/zeldaret/oot/pull/2286#discussion_r1829108940

* rename the flag for freeing `nextCutsceneIndex`

* rename the flag for automatic `sceneLayer` calc

it gets assigned to the `nextCutsceneIndex`,
so `CS_INDEX_NONE` name was misleading

* use explicit scene layer names instead of numbers

* ok, now the last two `CS_INDEX_*` are less unknown

the purpose of `CS_INDEX_BARRIER` is not quite clear still

* apply Jenkins fixes

https://jenkins.deco.mp/job/OOT/job/PR-2286/14/console

* run `fix_bss` locally

`ntsc-1.2` refused to comply though

* revert all local to the branch bss shifts

* ugh, use defines instead of an enum

probably size of enum entries doesn't match well? originally these were
just numbers. besides, not like it's a real enumeration from zero to a
value or some bit flags

* still, add a BSS pragma for `z_demo.c`

* apply review changes

* factor out a cutscene layer formula

* give scene layers names throughout code

* apply Jenkins fixes

https://jenkins.deco.mp/job/OOT/job/PR-2286/32/console

* tweak `CS_INDEX` descriptions

* apply PR review suggestions

* rename "auto" -&gt; "default"

* apply PR review suggestions

https://github.com/zeldaret/oot/pull/2286#discussion_r1868693980

essentially reverts 106cb1021be88f745ee303838c11c7d7cbf9c79d, except for 2 generic `z_scene.c` lines

* apply Jenkins fixes

https://jenkins.deco.mp/job/OOT/job/PR-2286/77/console

* Apply suggestions from code review

Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;
Co-authored-by: mzxrules &lt;mzxrules@gmail.com&gt;

* apply Jenkins fixes

https://jenkins.deco.mp/job/OOT/job/PR-2286/175/console

* Move CS_INDEX_* macros to z64save.h, with the definition of gSaveContext.save.cutsceneIndex

* `#define CS_INDEX_D 0xFFFD` and co.

Co-authored-by: cadmic &lt;cadmic24@gmail.com&gt;

* add comment on CS_INDEX_D

* review

* CS_INDEX_NONE is back

* bss

* expand comment about 0xFFFD

* fix comment about 0xFFFF usage

* review

---------

Co-authored-by: mzxrules &lt;mzxrules@gmail.com&gt;
Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;
Co-authored-by: cadmic &lt;cadmic24@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* introduce `enum CutsceneIndex` as a first step

* crudely rename `enum CutsceneIndex` entries

* run `check_format.py ...` separetely

so that it doesn't clutter previous commit. still, allowing `clangd LSP` to run format-on-save yields inconsistent results for me with the project's tooling, especially for header files

* apply a draft PR suggestion

Co-authored-by: mzxrules &lt;mzxrules@gmail.com&gt;

* rename `CS_INDEX_*` with PR suggestions

and some additional observations
reverified with
&gt; `check_format.py ...`
&gt; `make ...`

additionally:
- current clang-format lacks a rule for trailing commas
- compiler says about them `cfe: Warning 624`

* improve `CS_INDEX_*` naming, rem `ENTRANCE` suffix

https://github.com/zeldaret/oot/pull/2286#discussion_r1829165205

reverified with
&gt; `check_format.py ...`
&gt; `make ...`

* apply Jenkins fixes

https://jenkins.deco.mp/job/OOT/job/PR-2286/4/console

hmm, i do need this automation locally to

* apply a PR suggestion

https://github.com/zeldaret/oot/pull/2286#discussion_r1829219841

* remove redundant comments, fix the header comment

and add a comment chunk from https://github.com/zeldaret/oot/pull/2286#discussion_r1829108940

* rename the flag for freeing `nextCutsceneIndex`

* rename the flag for automatic `sceneLayer` calc

it gets assigned to the `nextCutsceneIndex`,
so `CS_INDEX_NONE` name was misleading

* use explicit scene layer names instead of numbers

* ok, now the last two `CS_INDEX_*` are less unknown

the purpose of `CS_INDEX_BARRIER` is not quite clear still

* apply Jenkins fixes

https://jenkins.deco.mp/job/OOT/job/PR-2286/14/console

* run `fix_bss` locally

`ntsc-1.2` refused to comply though

* revert all local to the branch bss shifts

* ugh, use defines instead of an enum

probably size of enum entries doesn't match well? originally these were
just numbers. besides, not like it's a real enumeration from zero to a
value or some bit flags

* still, add a BSS pragma for `z_demo.c`

* apply review changes

* factor out a cutscene layer formula

* give scene layers names throughout code

* apply Jenkins fixes

https://jenkins.deco.mp/job/OOT/job/PR-2286/32/console

* tweak `CS_INDEX` descriptions

* apply PR review suggestions

* rename "auto" -&gt; "default"

* apply PR review suggestions

https://github.com/zeldaret/oot/pull/2286#discussion_r1868693980

essentially reverts 106cb1021be88f745ee303838c11c7d7cbf9c79d, except for 2 generic `z_scene.c` lines

* apply Jenkins fixes

https://jenkins.deco.mp/job/OOT/job/PR-2286/77/console

* Apply suggestions from code review

Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;
Co-authored-by: mzxrules &lt;mzxrules@gmail.com&gt;

* apply Jenkins fixes

https://jenkins.deco.mp/job/OOT/job/PR-2286/175/console

* Move CS_INDEX_* macros to z64save.h, with the definition of gSaveContext.save.cutsceneIndex

* `#define CS_INDEX_D 0xFFFD` and co.

Co-authored-by: cadmic &lt;cadmic24@gmail.com&gt;

* add comment on CS_INDEX_D

* review

* CS_INDEX_NONE is back

* bss

* expand comment about 0xFFFD

* fix comment about 0xFFFF usage

* review

---------

Co-authored-by: mzxrules &lt;mzxrules@gmail.com&gt;
Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;
Co-authored-by: cadmic &lt;cadmic24@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Rename `acDmgInfo.effect` -&gt; `hitBacklash` (#2555)</title>
<updated>2025-06-17T09:23:49+00:00</updated>
<author>
<name>Dragorn421</name>
<email>Dragorn421@users.noreply.github.com</email>
</author>
<published>2025-06-17T09:23:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=e8c59385bc4652a2d51dc0f4cbea3f7078926eb3'/>
<id>e8c59385bc4652a2d51dc0f4cbea3f7078926eb3</id>
<content type='text'>
* CollisionCheckInfo.atHitEffect -&gt; atHitBacklash

* ColliderElementDamageInfoAC.effect -&gt; hitBacklash

* add HIT_BACKLASH_ enum

* bss

* bss

* bss

* bss

* bss

* Update comments</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* CollisionCheckInfo.atHitEffect -&gt; atHitBacklash

* ColliderElementDamageInfoAC.effect -&gt; hitBacklash

* add HIT_BACKLASH_ enum

* bss

* bss

* bss

* bss

* bss

* Update comments</pre>
</div>
</content>
</entry>
<entry>
<title>Macroify PlaySfxGeneral calls: introduce `SFX_PLAY_CENTERED` and `SFX_PLAY_AT_POS` (#2633)</title>
<updated>2025-06-15T22:28:37+00:00</updated>
<author>
<name>Dragorn421</name>
<email>Dragorn421@users.noreply.github.com</email>
</author>
<published>2025-06-15T22:28:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=fd1ea6bc1a0682b887977041e2759fa1f2af079a'/>
<id>fd1ea6bc1a0682b887977041e2759fa1f2af079a</id>
<content type='text'>
* Add `SFX_PLAY_CENTERED`

* Add `SFX_PLAY_AT_POS`</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add `SFX_PLAY_CENTERED`

* Add `SFX_PLAY_AT_POS`</pre>
</div>
</content>
</entry>
<entry>
<title>Document fog functions Gfx_SetFog(2) and Play_SetFog (#1922)</title>
<updated>2025-06-08T02:44:20+00:00</updated>
<author>
<name>Tharo</name>
<email>17233964+Thar0@users.noreply.github.com</email>
</author>
<published>2025-06-08T02:44:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=45bee14f2f24c2e7fc7c2b8030185e5d8ec96014'/>
<id>45bee14f2f24c2e7fc7c2b8030185e5d8ec96014</id>
<content type='text'>
* Document fog functions Gfx_SetFog(2) and Play_SetFog

* review

* Apply suggestions from code review

Co-authored-by: Tharo &lt;17233964+Thar0@users.noreply.github.com&gt;

---------

Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Document fog functions Gfx_SetFog(2) and Play_SetFog

* review

* Apply suggestions from code review

Co-authored-by: Tharo &lt;17233964+Thar0@users.noreply.github.com&gt;

---------

Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Remove "z64" prefix from all headers (#2518)</title>
<updated>2025-06-04T18:38:33+00:00</updated>
<author>
<name>fig02</name>
<email>fig02srl@gmail.com</email>
</author>
<published>2025-06-04T18:38:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=28cc9d68cfe4a037eb232d5465b84a943539bca3'/>
<id>28cc9d68cfe4a037eb232d5465b84a943539bca3</id>
<content type='text'>
* z64 - a

* z64 - b

* z64 - c

* z64 - d

* z64 - e

* z64 - f

* z64 - g

* z64 - h

* z64 - i

* z64 - l

* z64 - m

* z64 - o

* z64 - p

* z64 - q

* z64 - r

* z64 - s

* z64 - t

* z64 - v

* restore file

* fix merge

* fix merge

---------

Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* z64 - a

* z64 - b

* z64 - c

* z64 - d

* z64 - e

* z64 - f

* z64 - g

* z64 - h

* z64 - i

* z64 - l

* z64 - m

* z64 - o

* z64 - p

* z64 - q

* z64 - r

* z64 - s

* z64 - t

* z64 - v

* restore file

* fix merge

* fix merge

---------

Co-authored-by: Dragorn421 &lt;Dragorn421@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>T() macro loose ends 2 (#2564)</title>
<updated>2025-06-04T17:15:01+00:00</updated>
<author>
<name>Dragorn421</name>
<email>Dragorn421@users.noreply.github.com</email>
</author>
<published>2025-06-04T17:15:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=e8b708a4480e568f409c8e53986c2e96595b9405'/>
<id>e8b708a4480e568f409c8e53986c2e96595b9405</id>
<content type='text'>
* More T() in niw_girl, ossan, rr, ta, tana, wall_tubo, yabusame_mark

* Add and use LOG_STRING_T()

* include debug.h in translation.h

* Kyaaaaaa

* bss

* comment on Yabusame mato possible typo

* Revert "Kyaaaaaa"

This reverts commit 95097831fac62dd1f039b89cefca114c6a23b56e.

* (Kuzu)hara

* 原 -&gt; "-Hara" from dev name, possibly</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* More T() in niw_girl, ossan, rr, ta, tana, wall_tubo, yabusame_mark

* Add and use LOG_STRING_T()

* include debug.h in translation.h

* Kyaaaaaa

* bss

* comment on Yabusame mato possible typo

* Revert "Kyaaaaaa"

This reverts commit 95097831fac62dd1f039b89cefca114c6a23b56e.

* (Kuzu)hara

* 原 -&gt; "-Hara" from dev name, possibly</pre>
</div>
</content>
</entry>
<entry>
<title>Delete macros.h; Delete global.h (#2516)</title>
<updated>2025-04-27T16:48:11+00:00</updated>
<author>
<name>fig02</name>
<email>fig02srl@gmail.com</email>
</author>
<published>2025-04-27T16:48:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=f7a270655bd974242a286856bd56b490a998ac44'/>
<id>f7a270655bd974242a286856bd56b490a998ac44</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>add array_count.h (#2514)</title>
<updated>2025-04-26T22:17:02+00:00</updated>
<author>
<name>fig02</name>
<email>fig02srl@gmail.com</email>
</author>
<published>2025-04-26T22:17:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=bed76a3bf3cd89456e3331b2c2b50dbc5f79fe48'/>
<id>bed76a3bf3cd89456e3331b2c2b50dbc5f79fe48</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>macros.h 3/5: Split various macros (#2512)</title>
<updated>2025-04-26T01:12:35+00:00</updated>
<author>
<name>fig02</name>
<email>fig02srl@gmail.com</email>
</author>
<published>2025-04-26T01:12:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=25b2fa4bca1f1d2d155db2610191af1075e813b3'/>
<id>25b2fa4bca1f1d2d155db2610191af1075e813b3</id>
<content type='text'>
* split out various macros

* fix

* fix2

* fix dw

* libc path

* fix macro

* does this fix bss

* fix bss</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* split out various macros

* fix

* fix2

* fix dw

* libc path

* fix macro

* does this fix bss

* fix bss</pre>
</div>
</content>
</entry>
<entry>
<title>Use official macros for Physical Address conversion (#2511)</title>
<updated>2025-04-24T18:53:18+00:00</updated>
<author>
<name>fig02</name>
<email>fig02srl@gmail.com</email>
</author>
<published>2025-04-24T18:53:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=2341c44a6c3e2c5a44b640dd884b3ac3eca3ee68'/>
<id>2341c44a6c3e2c5a44b640dd884b3ac3eca3ee68</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
