Commit Graph

36 Commits

Author SHA1 Message Date
Briggs Baltzell 610daa97cd Add l_matDL symbols and assets to config files for all regions for d_menu_cloth 2026-02-12 08:34:02 -06:00
Briggs Baltzell ca9481dcc9 d_cloth_packet matching (#928)
* Match dCloth_packet_c::setMtx

* Match dCloth_packet_c::setGlobalWind

* Match dCloth_packet_c::dCloth_packet_c constructor implementation

* Match dCloth_packet_c::getFactor and get_cloth_anim_sub_factor implementation

* Match dCloth_packet_c::cloth_move implementation

* Match dCloth_packet_c::setNrm implementation

* Match dCloth_packet_c::init and default_factor_checkCB implementation

* Match dCloth_packet_c::draw implementation

* Match dCloth_packet_c::cloth_draw implementation

* Match dCloth_packet_c::plot implementation

* Match dCloth_packet_c::TexObjLoad implementation

* Match dCloth_packet_c::TexObjInit implementation

* Match dCloth_packet_c::TevSetting implementation

* Match dCloth_packet_c::dCloth_packet_create implementation

* Match dCloth_packet_c::TevSetting implementation

* Match dCloth_packetXlu_c::TevSetting implementation and make dCloth_packet_c members protected

* Match dCloth_packetXlu_c::cloth_draw implementation

* Match dClothVobj03_c::cloth_copy implementation and update member definitions

* Match dClothVobj04_c, dClothVobj05_c, and dClothVobj07_0_c::cloth_copy implementations and update member definitions

* Match dClothVobj03_c::init implementation, update cloth_counter definitions, and add new member variables

* Match `dClothVobj04_c::init`, `dClothVobj05_c::init`, and `dClothVobj07_0_c::init` implementations, and add new member variables.

* Match `dClothVobj03_c::dClothVobj03_create` and constructor implementations, update member definitions, and add new logic checks.

* Match `dClothVobj03_c::cloth_move` implementation

* Match `dClothVobj04_c`, `dClothVobj05_c`, and `dClothVobj07_0_c::cloth_move` implementations

* Match `dClothVobj03_c`, `dClothVobj04_c`, `dClothVobj05_c`, and `dClothVobj07_0_c::TexObjInit` implementations, update member definitions, and initialize `mTlutObj`.

* Match `TexObjLoad` implementations for `dClothVobj03_c`, `dClothVobj04_c`, `dClothVobj05_c`, and `dClothVobj07_0_c`.

* Fix `dClothVobj04_c::cloth_move`

* Match `dClothVobj04_create`, `dClothVobj05_create`, and `dClothVobj07_0_create` implementations, update parameter definitions, and add new constructor logic.

* Update parameter names in `dClothVobj05_VtxFactorCB` and `dClothVobj07_0_VtxFactorCB` for consistency.

* Adjust parameter values in `dClothVobj05_create` and `dClothVobj07_0_create` for consistency with expected behavior.

* Match `dClothVobj05_VtxFactorCB` and `dClothVobj07_0_VtxFactorCB` implementations and update return logic.

* Fix constructors

* Refactor repetitive parameter assignments in `dCloth_packet_c` with `setParam` and `setWindPower` for cleaner and more maintainable code.

* Add `setFactorCheckCB` call in `dCloth_packet_c` initialization

* Refactor `dCloth_packet_c` and related classes to eliminate redundant success checks with `chkCreateBuff` helper method.

* Refactor `dCloth_packet_c` and related classes to use getter methods for cleaner access and rename methods for improved clarity.

* Simplify constructors for `dClothVobj03_c`, `dClothVobj04_c`, `dClothVobj05_c`, and `dClothVobj07_0_c` by removing redundant parameters.

* Replace `field_0x109` with `mIsIndoors` for improved clarity and consistency across `dCloth_packet_c` and related classes.

* Replace `VECDotProduct` with `inprod` method in `dCloth_packet_c` for improved readability and modern syntax usage.

* Make `top_pointer` and `cloth_counter` members private in multiple `dClothVobjXX_c` classes for encapsulation.

* Match cloth creation functions

* Add `l_alpha_matDL` assets and update `GXCallDisplayList` usage in `dCloth_packetXlu_c`

* Match dCloth_packet_c::init

* Match dCloth_packet_c::setNrm

* Refactor dCloth_packet_c to use mDoMtx_stack_c methods

* Match `get_cloth_anim_sub_factor` implementation in `dCloth_packet_c`.

* Refactor `getFactor` in `dCloth_packet_c` to use a bitmask for neighbor checks, enhancing code clarity and efficiency.

* Match dCloth_packet_c::cloth_move

* Match dCloth_packet_c::setGlobalWind

* Match dCloth_packet_c::plot implementation

* Remove unused virtual function declarations

* Update `d/d_cloth_packet.cpp` to Matching in configure.py

* Refactor field_0x108 and mIsIndoors to boolean types, rename, and add explanatory comments.

* Update `d/d_cloth_packet.cpp` to `MatchingFor("GZLE01")` in configure.py

* Add new material and alpha material configurations for `d_cloth_packet` across GZLP01, GZLJ01, and D44J01

* Update `d/d_cloth_packet.cpp` to `Matching` in configure.py

* Update `d/d_cloth_packet.cpp` to `MatchingFor("GZLE01", "GZLP01")` in configure.py

* Add conditional GXSetNumIndStages and resetVcdVatCache for non-JPN versions in `dCloth_packet_c::draw`

* Update `d/d_cloth_packet.cpp` to `MatchingFor("GZLJ01", "GZLE01", "GZLP01")` in configure.py

* Matched dCloth_packet_c::dCloth_packet_c for `VERSION_DEMO` in `d/d_cloth_packet.cpp`

* Matched dCloth_packet_c::cloth_move for `VERSION_DEMO` in `d/d_cloth_packet.cpp`

* Matched dCloth_packet_c::draw for `VERSION_DEMO` in `d/d_cloth_packet.cpp`

* Matched dCloth_packet_c::TexObjInit for `VERSION_DEMO` in `d/d_cloth_packet.cpp`

* Matched dClothVobjXX_c::TexObjInit for `VERSION_DEMO` in `d/d_cloth_packet.cpp`

* Update `d/d_cloth_packet.cpp` to `Matching` in configure.py

* Replaced direct member access with getter methods in `d/d_cloth_packet.cpp`

* Added `f` suffix to floating-point literals in `d/d_cloth_packet.cpp` for consistency.
2026-02-12 01:42:21 -05:00
Roland 6893c2588e d_a_goal_flag - matching (#918)
* initial work on d_a_goal_flag

* Update config.yml to extract symbols from d_a_goal_flag; also add l_pos and l_texCoord

* 17% matching in .text

* daGoal_Flag_c::CreateHeap matched

* RopeMove 99%

* Update d_a_goal_flag.cpp

* getRacePath 100%

* 31% in .text

* 47% matching in .text

* 56% matching in .text

* 70% matching in .text
Add definitions to inlines in daGFlag_packet_c and fully matched some daGFlag_packet_c methods.

* 84% matching in .text
Match daGFlag_packet_c::draw

* 91% matching in .text
- Formatting tweaks
- Match TimerExecute
- Add fopMsgM_MiniGameTerminater_create inline
- Move daGoal_Flag_c::_create in the correct place to match .data

* d_a_goal_flag matching 100% for retail

* d_a_goal_flag demo 99%

* Resolve _create fakematch

* d_a_goal_flag demo matching 100%

* link d_a_goal_flag for demo

* Renaming of fields/variables and some refactoring

* Refactoring continued
- Change direct calls to VECDotProduct to cXyz::getDotProduct

* Named more HIO fields and packet fields

* Implement fopMsgM_MiniGameStarter_create

* Name all used HIO fields

* Named all fields in daGoal_Flag_c

* Finishing touches
2026-01-09 13:09:23 -05:00
LagoLunatic a1fa191734 Fix incorrect relocs detected for demo 2025-08-29 17:20:13 -04:00
LagoLunatic f1dc07558c Use custom ldscript template to fix missing .bss warning from linker
This fixes "No linker command file input for section '.bss'" being printed by the linker for every TU that includes the weak .bss from the PCH but then it gets stripped out and doesn't appear in the final object.
2025-08-26 23:02:54 -04:00
Maide 3f39078485 d_a_majuu_flag (#824)
* d_a_majuu_flag

* PR

* PR

* Fix demo

* Replace .clang-format

---------

Co-authored-by: LagoLunatic <LagoLunatic@users.noreply.github.com>
2025-08-03 20:24:55 -04:00
LagoLunatic 63a92eaa88 More demo work 2025-05-31 23:53:05 -04:00
LagoLunatic 763d451f34 Demo: Add .init splits and symbols, enable MW comment 2025-05-19 20:26:33 -04:00
LagoLunatic 6610bf1d1c Demo: Fix splits, add assets, update config
Builds OK now
2025-05-19 19:43:20 -04:00
LagoLunatic 448eee9478 Demo: Update config 2025-05-19 19:34:43 -04:00
LagoLunatic 64d9c81c8a Demo: Perform initial analysis 2025-05-19 19:32:55 -04:00
LagoLunatic 3a384a82f5 Demo: Add version config 2025-05-19 19:32:23 -04:00
LagoLunatic d6c3081559 Update dtk-template, dtk, and objdiff 2025-01-28 14:01:04 -05:00
LagoLunatic 8e44641465 Fix various data relocation differences in unlinked TUs 2025-01-14 22:11:08 -05:00
LagoLunatic 050cc12777 Use dtk asset extractor for in-function statics as well 2024-11-07 16:07:37 -05:00
LagoLunatic 6b31312531 Use asset extractor for more symbols 2024-11-02 12:47:15 -04:00
LagoLunatic a25031175e matDL build rule: Allow specifying global/local scope 2024-11-02 12:08:43 -04:00
LagoLunatic e9f82ff359 Add custom build rule for material display lists with image addresses in them 2024-11-01 19:32:15 -04:00
LagoLunatic 8911dab195 Starting switching u8 arrays to use dtk asset extract feature 2024-11-01 15:04:58 -04:00
LagoLunatic 6c6931c5e4 Make config.yml indentation consistent across versions 2024-11-01 13:28:46 -04:00
LagoLunatic 26ca0cd4b5 Update dtk-template, switch from intellisense to clangd 2024-10-17 16:12:07 -04:00
LagoLunatic abe7439e00 Update dtk to 0.9.2 2024-06-26 13:50:31 -04:00
LagoLunatic 67142ebcb8 Mark gpr/fpr funcs as stripped, runtime.c OK 2024-01-15 15:24:57 -05:00
LagoLunatic c3862413d5 Add noreloc to fix various data that looks like a pointer 2024-01-15 15:07:30 -05:00
TakaRikka 5773ee904c reorganize MSL_C/Runtime files. wip, notmatching 2023-12-27 21:07:21 -08:00
LagoLunatic 56a37d2594 JUTFontData_Ascfont_fix12 match 2023-12-06 15:52:57 -05:00
LagoLunatic aa52ef6e49 Fix JAZelAudio config 2023-11-06 01:12:17 -05:00
Jasper St. Pierre 222e190088 config fixes 2023-10-29 13:40:12 -07:00
Luke Street bad50602ec Update REL section alignments and dtk 2023-09-26 18:13:12 -04:00
Jcw87 32c90472a9 missing configure.py changes from b2fc1d2683
missing splits.txt changes from adb95b135c
2023-09-21 12:23:24 -07:00
Jasper St. Pierre b2fc1d2683 Move statics out of actor/ dir 2023-09-20 09:22:35 -07:00
Luke Street be7d0bb459 Add configuration for remaining files 2023-09-15 01:38:40 -04:00
Luke Street 2a2b9c2f4e Match & link DynamicLink.cpp 2023-09-15 00:49:02 -04:00
Luke Street 2f0ae6fa7d Update dtk & config adjustments 2023-09-13 09:48:56 -04:00
Jasper St. Pierre 95fdc41ffa f_op_kankyo yeah, match splits 2023-09-10 09:41:23 -07:00
Luke Street adb95b135c Import project
Original repository: https://github.com/encounter/ww
2023-09-10 00:48:55 -04:00