Commit Graph

878 Commits

Author SHA1 Message Date
LagoLunatic ebf3a29555 d_a_dai_item OK 2024-11-03 21:00:28 -05: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 dc64d54b5e Update dtk and dtk-template 2024-11-01 15:20:24 -04:00
LagoLunatic 2dfcdd84ab clean up d_wood and d_tree data, match d_wood on JPN, match rest of d_tree .data section 2024-10-31 18:43:53 -04:00
Mike Lester 64cc277d05 d_wood (bushes) matching (#682)
* d_wood (bushes) 73% matching

* d_wood::Unit_c::set_ground 100% match

Jasper pointed me to the fact that the complicated inv_sqrt function I wrote was indeed just std::sqrtf(), which unlocked the rest of the match

* Replace some bitshifts with multiplies based on PR feedback

* Remove all instances of "this->" from d_wood

* Add missing struct offset comment for mTevStr

* Cleaned up d_tree externs

* Use MTXIdentity instead of PSMTXIdentity

* Remove incorrect TODO rearding cCcD_ObjAtType enum

* Use the mDoAud_seStart inline function

* Remove unnecessary parenthesis

* Fix incorrect branching logic in d_wood::cc_hit_before_cut()

* d_wood data sections fixup

* Re-add "Nonmatching" comments to all nonmatching functions

* Formatting: reformat from 2 to 4 space indentation

This was a local system problem which slipped by me in a previous commit

* 100% match for d_wood::Anm_c::mode_norm()

Thanks Chippy! https://discord.com/channels/727908905392275526/873250400483024976/1298360716964790294

* Use cLib_*Bit() functions for flag checking and setting

Based on the inline functions from the .map

* d_wood: Use AnmID_e according to the .map file

* d_wood: add a couple AnmID_e related inlines from the .map

* d_wood: Name remaining unknowns related to animation

* d_wood: Match cc_hit_before_cut()

* d_wood: Match calc_cc() by using the dComIfGp_roomControl_getStayNo() inline

* d_wood: Match string table and search_anm() by using a constant in assert string

* d_wood: Match mode_to_norm()

Switching normAnim to a const* did most of the work

* d_wood: 100% match for L_attr and the .rodata section

* d_wood: Fill in .data section. Still some extra data from vtables

* d_wood: Match .sbss section

* d_wood: Match .sdata section

* d_wood: 98% match for Packet_c::draw()

The only error is that g_dTree_shadowTexCoord is still using a 32-bit load instead of 16. the only way I know of to fix that is to define the data in this compilation unit. But that can't be right

* d_wood: Various small formatting changes

- No one line function implementations
- Replaced instances of (SomeType*)0x0 (copy/pasted from Ghidra) with NULL
- Replaced a few instances of 0.0 with 0.0f
- Replaced one instance where a number was used instead of an enum value

* d_wood: More formatting fixes

- Removed unused variables from functions
- Removed unnecessary iVar1 loop variables (leftover Ghidra detritus)
- Fixed dtk function comments being wrapped by autoformatter. They now always appear on one line

* d_tree: 100% match of data which is used by d_wood

This moves g_dTree_shadowTexCoord into .sdata which allows d_wood::Packet_c::draw() to load its address with a single instruction. This  makes a 100% match for draw()

* d_wood: Removed unnecessary comment now that draw() matches

g_dTree_shadowTexCoord now lives in the d_tree .sdata section, so its instruction can be loaded with a single instruction. This makes a 100% match with draw().

* d_wood: 100% match for mode_cut()

* d_wood: Match mode_push_into()

Also renamed mWindDir to mForceDir as it represents both wind and an actor pushing from a vector

* d_wood: Match mode_push_back

* d_wood: Match __sinit_d_wood_cpp

The l_matDL display list is dynamically patched to reference the l_Txa_swood_bTEX texture at static initialization time. Is there a better way to represent this?

* d_wood: Fix incorrect constant in set_ground()

* d_wood: Simplify dummy data at the top of .data section

* d_wood: Mark as matching in configure.py

Had to move Packet_c destructor to get the functions in the right order. See discussion: https://discord.com/channels/727908905392275526/873250400483024976/1300680009458913280

* d_wood: Add `d/d_cc_d.h` include as some enums have moved

* d_wood: Clean up some types at the top

* Mark d_wood as non-matching for the Japanese version
2024-10-31 16:58:37 -04:00
LagoLunatic da6648d953 Fix debug mode build 2024-10-19 17:30:00 -04:00
LagoLunatic faa0a17849 Update dtk & dtk-template
Fixes symlinks and decompctx not working
2024-10-18 11:41:42 -04:00
LagoLunatic 7b1e5d2a0d Link d_ovlp_fade3 for USA and PAL but not JPN 2024-10-17 21:56:31 -04:00
LagoLunatic f1d73f7fc7 clangd: Disable no return statement warning for unlinked TUs 2024-10-17 20:44:42 -04:00
LagoLunatic 26ca0cd4b5 Update dtk-template, switch from intellisense to clangd 2024-10-17 16:12:07 -04:00
LagoLunatic d71cf42416 m_Do_MemCardRWmng OK 2024-10-02 19:22:51 -04:00
LagoLunatic 6adddacc8c d_lib OK 2024-10-01 15:07:22 -04:00
LagoLunatic 04477b8943 Update from dtk-template 2024-10-01 03:57:45 -04:00
LagoLunatic cb558f5f22 Change progress categories slightly 2024-09-30 14:58:11 -04:00
LagoLunatic e04a8da41e Update from dtk-template 2024-09-29 16:19:03 -04:00
LagoLunatic bd39bcd707 object-camera OK 2024-09-11 15:01:40 -04:00
LagoLunatic a1bd36d0c5 object-light OK 2024-09-10 02:08:34 -04:00
LagoLunatic 0bea3955d3 object-actor OK
mostly copied from pikmin2 decomp
2024-09-09 15:14:15 -04:00
LagoLunatic 643a4471de Fix JAZelAudio to be categorized as TWW game code 2024-09-09 12:45:30 -04:00
LagoLunatic 1606255c34 JASSeqParser OK
credits to cuyler for regswap fix
2024-09-07 23:34:52 -04:00
LagoLunatic a42fd39a9f d_a_att OK, d_a_bgn header work
fixes #89
2024-09-07 16:16:17 -04:00
LagoLunatic 22e4c676c2 Update dtk-template 2024-09-06 12:44:34 -04:00
LagoLunatic 45825ef331 d_a_evsw OK
fixes #184
2024-09-06 12:37:40 -04:00
LagoLunatic da7a1c4a87 Merge pull request #677 from encounter/progress-categories
Progress categories support
2024-09-04 10:58:03 -04:00
Luke Street 684828f81d Progress categories support 2.0 2024-09-03 21:02:55 -06:00
Luke Street 5495d71f95 Progress categories support 2024-09-02 23:30:02 -06:00
Jasper St. Pierre e6a4022ad9 d_a_obj_usovmc
fixes #445
2024-09-02 12:01:14 -07:00
Jasper St. Pierre 00eb28e903 d_a_obj_vmc match
fixes #448
2024-09-02 11:47:52 -07:00
Jasper St. Pierre ca6919cd30 vmsdz/vmsms match
fixes #449 #450
2024-09-02 10:39:46 -07:00
Daniel Hajjar 596fe9ab93 d_a_obj_quake (#676)
* d_a_obj_quake work

* daObjQuake_c::_create matching

* daObjQuake_c::_is_delete matching

* d_a_obj_quake matching
2024-08-27 10:07:14 -04:00
Daniel Hajjar fb2a2e978e JASOscillator (#675)
* JASOscillator work

* JASOscillator matching

* JASOscillator code cleanup

* JASOscillator minor tweak

* Fixed build

* Update src/JSystem/JAudio/JASOscillator.cpp

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

---------

Co-authored-by: LagoLunatic <LagoLunatic@users.noreply.github.com>
2024-08-22 02:29:36 -04:00
Jasper St. Pierre ceead3caff d_a_obj_gaship
fixes #396
2024-08-02 23:54:43 -07:00
Erilea 202fce5fa7 d_vibration / d_vib_pattern 2024-07-25 19:13:30 +02:00
LagoLunatic bad4ac23e9 work on various inlines, JASSeqCtrl OK 2024-07-17 11:51:58 -04:00
Daniel Hajjar 4e2faca54b d_a_obj_timer (#669)
* Started work on d_a_obj_timer

* daObjTimer::Act_c::_create matching

* d_a_obj_timer work

* daObjTimer::Act_c::mode_count matching

* d_a_obj_timer matching

* Fix build
2024-07-17 10:07:28 -04:00
LagoLunatic ebfca99f16 d_a_title matching on JPN and PAL 2024-07-14 14:01:03 -04:00
Daniel Hajjar 347f996cd4 d_a_title (#666)
* d_a_title work

* daTitle_proc_c::proc_draw matching

* daTitle_proc_c::~daTitle_proc_c matching

* daTitle_proc_c::daTitle_proc_c matching

* d_a_title work

* daTitle_proc_c::set_mtx matching

* proc_execute matching

* daTitle_proc_c::model_draw matching

* daTitle_c inlines matching

* daTitle_proc_c::calc_2d_alpha matching

* Fixed mDoExt_bpkAnm::remove inline

* Updated configure.py

* d_a_title cleanup

* Updated configure.py
2024-07-14 10:05:20 -07:00
LagoLunatic 2a958f1ae8 Fakematch d_ovlp_fade2 weak order
fixes #667
2024-07-14 12:09:08 -04:00
LagoLunatic 597c49efb7 OSReboot OK 2024-07-12 22:53:23 -04:00
LagoLunatic 7de60faf9c THP almost all matching 2024-07-11 14:02:15 -04:00
Jasper St. Pierre 83462d3f27 d_spline_path 2024-07-11 00:26:17 -07:00
LagoLunatic 635a1fd052 d_a_obj_figure done except linkDraw regalloc 2024-07-10 11:25:00 -04:00
LagoLunatic 42d942d33c __start OK, OSReboot almost 2024-07-07 18:41:48 -04:00
LagoLunatic cc0649fae9 Switch Runtime.PPCEABI.H to MWCC 1.3 2024-07-07 16:42:57 -04:00
LagoLunatic fbdb3cede3 More dolphin/os matches 2024-07-07 16:04:13 -04:00
LagoLunatic 09e3562a32 Copy dolphin/os progress from TP decomp 2024-07-07 13:24:14 -04:00
LagoLunatic fcbfe1e299 MSL_C OK, add MWCC GC v1.3 2024-07-07 09:33:21 -04:00
LagoLunatic 7d98e136a3 abort_exit OK 2024-07-06 15:59:29 -04:00
LagoLunatic 8f0da59ce9 JKRExpHeap OK (with fakematches) 2024-07-06 13:51:35 -04:00