Commit Graph

2640 Commits

Author SHA1 Message Date
Reonu a94d414c96 Document bg_hidan_sima actor (#2830)
* Document bg_hidan_sima actor

Use the enum added for the params everywhere

Address review changes + fix typo

Address review

Update src/overlays/actors/ovl_Bg_Hidan_Sima/z_bg_hidan_sima.c

Co-authored-by: mzxrules <mzxrules@gmail.com>

Update src/overlays/actors/ovl_Bg_Hidan_Sima/z_bg_hidan_sima.c

Co-authored-by: mzxrules <mzxrules@gmail.com>

Address latest review

remove "it works like this"

* Update src/overlays/actors/ovl_Bg_Hidan_Sima/z_bg_hidan_sima.c

Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>

* Update src/overlays/actors/ovl_Bg_Hidan_Sima/z_bg_hidan_sima.c

Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>

* Address review

---------

Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2026-10-07 09:27:22 +02:00
Dragorn421 52a510f379 [cc0 oot] dekubaba (#2797)
* [cc0 oot] dekubaba

* EnDekubabaActionFunc

* EnDekubaba cleanup

* dekubaba: more cleanup

* dekubaba more cleanup
2026-09-30 12:18:54 +00:00
Dragorn421 83cb14d821 [cc0 oot] object_wf and z_en_wf (#2786)
* [cc0 oot] object_wf and z_en_wf

* docs

* EnWfActionFunc

* EnWf cleanup

* enwf review
2026-09-30 12:10:44 +00:00
Dragorn421 d90d9750b6 Fix misc 25 (#2829)
* #ifndef ENVIRONMENT_H_ -> #ifndef ENVIRONMENT_H (remove trailing underscore)

* rm from makefile suggestion about additional assets/ folder (just use assets/)

* BgCheck_AnyLineTest 1-3 : change 0/1 args in calls to false/true

* func_8083C6B8 returns bool

* parens cleanup

* fix typos

* cleanup UNK_TYPE uses

* fix ACTOR_ID_MAX value comment

* EnDh.limbRotTable -> morphTable

* some xml formatting

* bool -> s32

* shadowAlpha = 0xFF -> 255

* EnRu1_SetPlatformCamSetting/EnRu1_GetPlatformCamSetting: use CAM_SET_

* rm leading & in extracted references to jfif data arrays

* remove references to zapd

* gPoeComposerFlatHeadDL_000060E0_Tex -> object_po_composer_000060E0_Tex in HACK_no_warn_bad_dims_Texs

* correct SKYBOX_CUTSCENE_MAP comment
2026-09-30 14:02:57 +02:00
Tharo 1bef952ff6 Unused variable/parameter cleanup (#1321)
* UNUSED attribute for variables and parameters in static segments and for all stack padding variables

* No more unused variable warnings

* Make pad variable names consistent

* Small cleanup

* Macro-ify stack padding

* Use stack padding for more variables not previously named pad

* Format

* Check unused parameter on gamestate overlays and pause menu

Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>

* Merge 2x u8 stack pads into 1x s16 stack pad in en_ik

* Remove UNUSED from function prototypes

* Suggested changes

Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>

* More unused variables

* Fix merge, updated for new versions

* Format

* questionable UNUSED and STACK_PAD more usage

* format

* format

* one more STACK_PADS in z_kaleido_map.c

---------

Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2026-09-24 06:29:19 +02:00
Dragorn421 39070bb9dd Fix misc 24 (#2760)
* rm PROJECT_DIR var from makefile

* fix tlutoffset missing 0x prefix

* fix FTOFIX32 redef warning

* `@bug:` -> `@bug`

* playerFloorPoly -> sPlayerFloorPoly

* fix settingChangeSuccessful use as bool

* fix broken english

* osEPiStartDma: use OS_MESG_PRI_HIGH

* EffectSsHahen_SpawnBurst: pass OBJECT_ for objId

* remove extra parens

* fix trailing comma warnings in enums

* EnRu1: decimal alpha

* fix parens

* fix ATELEM_SFX_NORMAL comment (collider "type" was renamed to material)

* fix comment in Math3D_TriChkPointParaYImpl

* use ANIMMODE_ more

* Remove leading 0s from enum comments (as they indicate octal in C)
2026-09-24 05:56:15 +02:00
Dragorn421 5d80451f31 Remove src/ from include path and consider src/ includes in includes style (#2823)
* Remove src/ from include path

* Define includes ordering for src/ includes

* Update includes.md
2026-09-17 12:23:15 +02:00
ChaseDream c2aff68a86 Fix 8 incorrect hanzi in charmap.chn.txt and extract_text.py (#2827)
Second pair of eyes for #2383: manually re-checked the extracted hanzi against the in-game message font glyphs and their message context. 8 entries were misread lookalikes; codepoints are unchanged so this only affects the human-readable labels, not the extracted bytes.

- ⋯ (U+22EF) → … (U+2026) @0xA109 — the font glyph matches the standard horizontal ellipsis
- 蠃 → 赢 @0xA12E — 000F "你贏啦!!" (bombchu bowling prize); 蠃 is a snail/clam, the glyph re-reads as 赢
- 噓 → 嘘 @0xA5DA — simplified form used throughout the simplified text
- 咩 → 哞 @0xA5F1 — message 2006, a cow talking about producing milk; 咩 is a sheep's bleat, 哞 a cow's moo (牛, not 羊, on the right)
- 亳 → 毫 @0xA605 — 201B "一根毫毛" (a single hair); 亳 is a place name, the glyph lacks its extra upper-right stroke
- 汊 → 汉 @0xA621 — 203F "懶漢" / 404E "男子漢" (lazy fellow / manly man); 汊 means a stream branch
- 鰓 → 鳃 @0xA68E — simplified form (fish gill)
- 寃 → 冤 @0xA75B — standard form (寃 is the variant spelling)
Apply the same replacements to CHN_CHARS in tools/extract_text.py (extraction charmap) so the build matches; charmap.chn.txt is used for building, CHN_CHARS for extraction.
2026-09-14 14:15:11 +02:00
Dragorn421 cbe814b254 Apply includes style to src/code/z_[r-z].*.c (#2824)
* Apply includes style to `src/code/z_[r-z].c`

* fixup
2026-09-04 19:12:50 +00:00
djevangelia 749e232dc3 z_scene Some comments and function names (#2808)
* z_scene Some comments and function names

* review changes

* further fixing from comments

* vromAddr

---------

Co-authored-by: djevangelia <djevangelia>
2026-09-02 18:59:35 +02:00
Dragorn421 6c29db8fa6 Document an includes style, apply to z_demo.c and z_play.c (#2803)
* Document an includes style, apply to z_demo.c and z_play.c

* "reverse" style includes

* bss

* clarify what a "main header" is

* Update docs/includes.md

Co-authored-by: Tharo <tharo10600@gmail.com>

* Update docs/includes.md

---------

Co-authored-by: Tharo <tharo10600@gmail.com>
2026-09-01 18:58:33 +02:00
Dragorn421 d01089e81a [cc0 oot] object_zf and z_en_zf (#2791)
* [cc0 oot] object_zf and z_en_zf

* fixups

* ENZF_TYPE_LIZALFOS_PAIRED_ -> ENZF_TYPE_LIZALFOS_PAIRED_MINIBOSS_

* EnZf cleanup
2026-08-31 16:59:24 +00:00
mzxrules 176a0bc02a Document pass on WaterBox code (#2695)
* Document pass on WaterBox code

* implement suggestions, missing comment

---------

Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2026-08-31 18:46:13 +02:00
Dragorn421 6bc695cc14 [cc0 oot] z_vis* (#2782)
* [cc0 oot] z_vis*

* bss

* docs

* fixup

* further vis docs

* add FbFilterType enum

* bss

* gfxP
2026-08-31 18:36:25 +02:00
Dragorn421 7dbd31ab0b [cc0 oot] EnFish (#2792)
* [cc0 oot] EnFish

* bring changes to external files

* EnFish actionFunc typedef

* EnFish move variable assigns into decls

* format
2026-08-31 18:22:17 +02:00
Dragorn421 1e2bd9e46a [cc0 oot] Biri (#2794)
* [cc0 oot] Biri

* name biri anims (by usage, Z64Utils cant preview them)

* fixup bari/biri mixup

* EnBili cleanup

* biri cleanup

* biri: merge var ini with decl
2026-08-31 16:03:49 +00:00
Derek Hensley aceaa1325d gActorSetupDls (#2802)
* gActorSetupXluDL

* gActorSetupOpaDL

* ACTOR_SETUP_OPA_DL

* BSS

* Some more usages of ACTOR_SETUP_OPA_DL

* docs

---------

Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2026-08-31 15:55:26 +00:00
Dragorn421 e5daae2850 [cc0 oot] bowling things (#2793)
* [cc0 oot] bowling things

* bowling fixups

* bowling things cleanup
2026-08-31 15:46:12 +00:00
Dragorn421 fe068a1396 [cc0 oot] Bari (#2795)
* [cc0 oot] Bari

* revert using biri params

* EnVali cleanup

* bari cleanup

* bari cleanup
2026-08-31 15:37:51 +00:00
Dragorn421 761db13884 [cc0 oot] Keese (#2798)
* [cc0 oot] Keese

* bodyType -> bodyElementalType

* cleanup EnFirefly

* keese cleanup
2026-08-31 15:29:52 +00:00
Dragorn421 e9b8786fcb [cc0 oot] BgDyYoseizo (#2796)
* [cc0 oot] BgDyYoseizo

* BgDyYoseizo small cleanup

* bgdyyoseizo comment on D_80875440
2026-08-31 17:21:31 +02:00
Olvivi 6809439703 Useful Eventchkinf flag renames (#2807)
* Rename EVENTCHKINF 40, 45, 80, C7

* Rename EVENTCHKINF 40, 45, 80, C7 w format

* updated save.h comment for accuracy

Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>

* Applied 'Zelda' to 'Zeldas' & 'Pulled' to 'Obtained' adjustments

* EVENTCHKINF_INDEX_OBTAINED_ZELDA_LETTER -> EVENTCHKINF_INDEX_OBTAINED_ZELDAS_LETTER

---------

Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2026-08-30 10:22:27 +02:00
Dragorn421 63e2ae59ec Document some bugs (#2806)
* `@bug UB` in Item_Give and Item_CheckObtainability

* `@bug` on `envCtx->windSpeed` not initialized in Environment_Init
2026-08-29 16:14:49 +02:00
Gabriel Ravier b4c29fa50b Document z_eff_ss_stone1.[ch] (#2670)
* Document z_eff_ss_stone1.[ch]

* Incorporate feedback from PR review.

From https://github.com/zeldaret/oot/pull/2670:
- Shortened excessively verbose
  suppressRTransFadeFlashAlphaStepAfterTwoFrames name to
  suppressFadeFlash
- Fixed up comment that went waaaaaay beyond the column limit in
  z_eff_ss_stone1.h
- Shortened comparison with 0 of variable bool semantics in
  z_eff_ss_stone1.c

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>

* Fix misnaming from PR review and document some more

From https://github.com/zeldaret/oot/pull/2670:
- shortenFadeFlash is incorrect - renamed to freezeFadeFlash
- Used `false` instead of 0 in EnArrow_Fly
- Elaborated comments about what exactly freezeFadeFlash does

Also added a few extra comments to z_eff_ss_stone1.c

* Ran clang-format

* More feedback from PR review, clarified comment

From https://github.com/zeldaret/oot/pull/2670:
- Change 0 to false in header comment
- Remove verbose speculation about former use of unused variable
- Made comment on use of viewDepth clearer
- Separated matrix and gfx code with a newline

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>

* Marked the "1500" as being in units

---------

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2026-08-19 14:04:49 +02:00
Jordan Longstaff 58d06849af Document EnIn (AKA the hard-working Ingo) (#2778)
* Document `EnIn` (AKA the hard-working Ingo)

* Fix variable references

* Revert switch

* Rename race outcome functions for clarity

* Apply suggestions
2026-08-19 14:03:48 +02:00
Dragorn421 e8d2d26431 [cc0 oot] kanji_tex (#2784)
* [cc0 oot] "kanread"

* format

* document kanji_tex

* fixup
2026-08-19 14:03:21 +02:00
Dragorn421 c1fd4c2290 [CI] Fix apply_fix_bss_patches.py (#2801) 2026-08-16 02:53:29 +02:00
Dragorn421 bb927944a7 Update csdis.py (use CS_TEXT_ enum) and csdis_re.py (#2800) 2026-08-15 06:01:23 +02:00
Dragorn421 96f111b04f [GHA] Fixup final jobs if conditions (#2799) 2026-08-14 13:34:04 +02:00
Dragorn421 05e9046417 [cc0 oot] z_memory_utils (#2783)
* [cc0 oot] z_memory_utils

* format

* doc

* MemCopy: The memory regions must not overlap.
2026-08-05 18:32:30 +02:00
Dragorn421 a883cd019a [cc0 oot] gameplay_keep (#2781)
* [cc0 oot] gameplay_keep

* gFishIn{Air,Water}Anim
2026-08-05 18:32:02 +02:00
Dragorn421 6b7c0a894f Add support for IA palettes (#2789) 2026-08-04 06:50:24 +02:00
Dragorn421 c24098a6f4 [cc0 oot] object_tp and z_en_tp (#2785)
* [cc0 oot] object_tp and z_en_tp

* docs

* fixup
2026-08-04 06:49:47 +02:00
Dragorn421 05ee4fb843 gha: Prevent running outside zeldaret/oot (#2788)
* gha: Prevent running outside zeldaret/oot

* also dont run the following jobs

* hmmmmm
2026-08-04 06:48:58 +02:00
Dragorn421 22d4ca0be7 spec: change include to ignore duped includes across spec (#2777)
* spec: impl `include_once` and error on duped includes across spec

* duped includes fixups

* rm get_single_segment_by_name from spec.c (unused code)

* replace include logic with include_once's
2026-08-03 16:42:52 +02:00
Tharo da4a1f661c [rsp] Introduce microcode build process, disassemble and build both rspboot versions (#2764)
* [rsp] Introduce microcode build process, disassemble and build both rspboot versions

* Suggested changes

* Check-in tool for generating armips.cpp from upstream sources, regen armips.cpp against a newer commit

* License armips_gen.py, add notice that armips.cpp is automatically generated

* Qualify comment with X105

* Clarify the assumed purpose of rspboot releasing SP_SEMAPHORE
2026-08-02 16:27:33 +02:00
cadmic 32b88f90a8 Fix fix_bss.py tiebreaking algorithm (#2779) 2026-07-31 07:28:40 +02:00
Tharo 269d03016c Automatically detect other common MIPS toolchains, update build dependencies in README (#2765)
* Automatically detect other common MIPS toolchains, update build dependencies in README

* Swap N64_GCCPREFIX and N64_INST for libdragon toolchain detection
2026-06-08 13:18:50 +02:00
Tharo 495b7d402f Fix iQue building with DEBUG_FEATURES=1 (#2766) 2026-06-08 13:17:50 +02:00
Jordan Longstaff aa1a86708f Finish EnNutsball documentation (#2763)
* Finish `EnNutsball` documentation

* Rename things
2026-05-31 17:47:06 +02:00
Jordan Longstaff e560ff093a Document EnSa (#2744)
* Document `EnSa`

* Rename INFTABLE entries

* Animation set -> group

* Remove trailing commas

* Rename textState field

* Remove trailing comma

* Rename EVENTCHKINF flag

* Correct frowning/closed swap of enum

* Rename INFTABLE flag
2026-05-27 18:28:49 +00:00
Dragorn421 2cefc0e109 Add docs/ to doxygen input (#2761) 2026-05-25 06:25:39 +02:00
Jordan Longstaff 3af589ba3b Document DemoSa (Saria's cutscene actions) (#2669)
* Document DemoSa (Saria's cutscene actions)

* Add missing include

* Add another missing include

* Change struct to enum

* add action enum comments to action funcs array

* comment on `DemoSa_InitChamberOfSages` not setting action and relying on the struct being zerod

* fixup demosa action enum numbering formatting

* Rename Unknown -> Unused

* Rename init function

* Missed rename

* Use `ANIMMODE` enum

Co-authored-by: Copilot <copilot@github.com>

* Remove redundant includes

* Rename Ganon actions to SageAction

* Rename sage-related actions

* More renames

* SageAction -> SageMagic

* Restore duplicate eye/mouth enums

* Minor style fixes

* Better action function name matching

---------

Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
2026-05-25 06:25:11 +02:00
Jordan Longstaff 2b29808f8d Document EnHs and EnHs2 (Carpenter's son) (#2758)
* Document `EnHs` and `EnHs2` (Carpenter's son)

* focusOffset -> sFocusOffset

* Rename tracking flag fields

* Roll back subrepo changes

* Remove comment on trackingFlags

Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>

---------

Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2026-05-23 09:00:29 +02:00
Dragorn421 4834ec2b69 GHA: Compiler archives from runner image instead of download (#2757) 2026-05-11 04:52:09 +00:00
Tharo b6f8584597 Split data/rsp asm files into individual files for each microcode (#2756) 2026-05-10 21:05:39 +02:00
Dragorn421 4b742bf3cf Assets system: reconcile xml versions using implicit and relative offsets (#2614)
* Assets system: reconcile xml versions using implicit offsets

* simplify

* remove other object_mag xmls

* Introduce relative offsets: `Offset=".+0x421"`, more sizable `ResourceDesc`s, update spec

* fix

* reconcile object_mo xml

* reconcile object_tw xml

* reconcile object_xc xml (and add Tlut="gNameTLUT" to Texture resources)

* reconcile object_fd xml

* reconcile object_kingdodongo xml

* bss

* reconcile gameplay_keep.xml
2026-05-09 20:36:05 +00:00
Dragorn421 9b795e46de Readme: fix GHA build badge (#2754) 2026-05-08 19:42:29 +02:00
Dragorn421 4fad31ecdf Compiler binaries download: separate from extract and checksum (#2753) 2026-05-08 19:31:32 +02:00
Jordan Longstaff 9776710a4f Child Ruto Actions Part 6: Sitting (#2623)
* Child Ruto Actions Part 6: Sitting

* Format

* Enum indices in comments

* Remove trailing whitespace

* Rename room number fields

* Rename to EnRu1_UpdateBgCheckInfo

* Revert "Rename to EnRu1_UpdateBgCheckInfo"

This reverts commit 7926cfeeca.

* Rename to UpdateBouncing

* Rename INFTABLE flags

* Rename to actorIter

* Remove unneeded parentheses

* Rectify comments in `EnRu1_UpdateSittingAction`

* Reformat

* Proposed name changes

* Change comment

* Multiple reversions
2026-05-06 23:33:59 +02:00