Commit Graph

1764 Commits

Author SHA1 Message Date
LagoLunatic
ba31450171 Remove dead link to vscode docs from readme 2024-11-20 16:34:02 -05:00
LagoLunatic
c81da30538 GXPerf OK
Some checks failed
Build / build (GZLE01) (push) Has been cancelled
Build / build (GZLJ01) (push) Has been cancelled
Build / build (GZLP01) (push) Has been cancelled
Build / website (push) Has been cancelled
2024-11-10 15:55:26 -05:00
LagoLunatic
990068ec3d Rename __GXData -> gx, fix more clangd warnings
Some checks failed
Build / build (GZLE01) (push) Has been cancelled
Build / build (GZLJ01) (push) Has been cancelled
Build / build (GZLP01) (push) Has been cancelled
Build / website (push) Has been cancelled
2024-11-07 17:10:49 -05:00
LagoLunatic
050cc12777 Use dtk asset extractor for in-function statics as well 2024-11-07 16:07:37 -05:00
LagoLunatic
ba5b37350c Update dtk-template, add decomp.me preset IDs
Some checks are pending
Build / build (GZLE01) (push) Waiting to run
Build / build (GZLJ01) (push) Waiting to run
Build / build (GZLP01) (push) Waiting to run
Build / website (push) Blocked by required conditions
2024-11-07 14:47:52 -05:00
LagoLunatic
04a5b59db5 GX work 2024-11-07 14:24:48 -05:00
LagoLunatic
0492ca2b52 start d_menu_option
Some checks failed
Build / build (GZLE01) (push) Has been cancelled
Build / build (GZLJ01) (push) Has been cancelled
Build / build (GZLP01) (push) Has been cancelled
Build / website (push) Has been cancelled
2024-11-05 20:53:59 -05:00
LagoLunatic
92af4c4025 JPN fix
Some checks failed
Build / build (GZLE01) (push) Has been cancelled
Build / build (GZLJ01) (push) Has been cancelled
Build / build (GZLP01) (push) Has been cancelled
Build / website (push) Has been cancelled
2024-11-03 21:05:45 -05:00
LagoLunatic
ebf3a29555 d_a_dai_item OK 2024-11-03 21:00:28 -05:00
LagoLunatic
e01095535f d_a_dai_item work
Some checks failed
Build / build (GZLE01) (push) Has been cancelled
Build / build (GZLJ01) (push) Has been cancelled
Build / build (GZLP01) (push) Has been cancelled
Build / website (push) Has been cancelled
2024-11-02 16:21:43 -04: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
89c74d0133 GX work, GXData struct should be correct now
Some checks are pending
Build / build (GZLE01) (push) Waiting to run
Build / build (GZLJ01) (push) Waiting to run
Build / build (GZLP01) (push) Waiting to run
Build / website (push) Blocked by required conditions
2024-11-02 00:13:40 -04:00
LagoLunatic
d264788d79 remove debug prints from matDL build script 2024-11-02 00:12:02 -04:00
LagoLunatic
76a652c977 fix JPN build 2024-11-02 00:11:12 -04:00
LagoLunatic
3eac0a16ac warning cleanup 2024-11-02 00:00:04 -04:00
LagoLunatic
e9f82ff359 Add custom build rule for material display lists with image addresses in them
Some checks are pending
Build / build (GZLE01) (push) Waiting to run
Build / build (GZLJ01) (push) Waiting to run
Build / build (GZLP01) (push) Waiting to run
Build / website (push) Blocked by required conditions
2024-11-01 19:32:15 -04:00
Jasper St. Pierre
a16d8cee02 minor cleanup 2024-11-01 16:11:07 -07:00
LagoLunatic
dc64d54b5e Update dtk and dtk-template 2024-11-01 15:20:24 -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
2dfcdd84ab clean up d_wood and d_tree data, match d_wood on JPN, match rest of d_tree .data section
Some checks are pending
Build / build (GZLE01) (push) Waiting to run
Build / build (GZLJ01) (push) Waiting to run
Build / build (GZLP01) (push) Waiting to run
Build / website (push) Blocked by required conditions
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
6f27d32ab1 d_a_bk work
Some checks failed
Build / build (GZLE01) (push) Has been cancelled
Build / build (GZLJ01) (push) Has been cancelled
Build / build (GZLP01) (push) Has been cancelled
Build / website (push) Has been cancelled
2024-10-29 00:23:12 -04:00
LagoLunatic
fab0d7a5ba misc cleanup, mostly inlines 2024-10-29 00:22:32 -04:00
Jasper St. Pierre
70044ec8dd Clean up cc enums 2024-10-28 21:16:46 -07:00
LagoLunatic
9388725dd3 Remove autoformatter settings
Some checks failed
Build / build (GZLE01) (push) Has been cancelled
Build / build (GZLJ01) (push) Has been cancelled
Build / build (GZLP01) (push) Has been cancelled
Build / website (push) Has been cancelled
2024-10-22 12:36:25 -04:00
LagoLunatic
f8e615fae7 cleanup 2024-10-22 12:36:12 -04:00
LagoLunatic
da6648d953 Fix debug mode build
Some checks failed
Build / build (GZLE01) (push) Has been cancelled
Build / build (GZLJ01) (push) Has been cancelled
Build / build (GZLP01) (push) Has been cancelled
Build / website (push) Has been cancelled
2024-10-19 17:30:00 -04:00
LagoLunatic
55ad93af06 cleanup daPy_sightPacket_c inlines, match setHookshotSight 2024-10-19 17:25:30 -04:00
LagoLunatic
a3560350c7 d_a_sail and d_a_pirate_flag cleanup 2024-10-19 15:39:43 -04:00
LagoLunatic
de34ef5fb6 Fix J build 2024-10-19 14:15:33 -04:00
LagoLunatic
b293609f56 Fix dPa_modelEmitter_c vtable 2024-10-19 14:04:00 -04:00
LagoLunatic
329d94a301 Add fake headers for unsolved weak objects to reduce manual copy-pasting 2024-10-19 14:03:50 -04:00
LagoLunatic
cb75b2dad4 Match dDlst_setResTimgObj 2024-10-19 13:09:28 -04:00
LagoLunatic
ea7b18aa9f Update clangd settings 2024-10-19 13:09:03 -04:00
Daniel Hajjar
9ed7cfc79d
d_a_pirate_flag (#681)
* d_a_pirate_flag started work

* daPirate_Flag_packet_c::setCorrectNrmAngle matching

* daPirate_Flag_packet_c::setBackNrm matching

* daPirate_Flag_packet_c::setNrmVtx work

* d_a_pirate_flag work

* get_cloth_anim_factor matching

* pirate_flag_move matching

* daPirate_Flag_Execute matching

* d_a_pirate_flag mostly done
2024-10-19 13:07:44 -04:00
SuperDude88
716492b7b9
First Person Item Procs (#680)
Some checks are pending
Build / build (GZLE01) (push) Waiting to run
Build / build (GZLJ01) (push) Waiting to run
Build / build (GZLP01) (push) Waiting to run
Build / website (push) Blocked by required conditions
* First Person Item Procs

Match a couple of Link's proc functions

* Cleanup
2024-10-19 13:03:32 -04:00
LagoLunatic
ce592831fe Warning/error cleanup
Some checks are pending
Build / build (GZLE01) (push) Waiting to run
Build / build (GZLJ01) (push) Waiting to run
Build / build (GZLP01) (push) Waiting to run
Build / website (push) Blocked by required conditions
2024-10-18 15:55:31 -04:00
LagoLunatic
0255c90ad6 Customize more vscode settings 2024-10-18 15:24:01 -04:00
LagoLunatic
faa0a17849 Update dtk & dtk-template
Some checks are pending
Build / build (GZLE01) (push) Waiting to run
Build / build (GZLJ01) (push) Waiting to run
Build / build (GZLP01) (push) Waiting to run
Build / website (push) Blocked by required conditions
Fixes symlinks and decompctx not working
2024-10-18 11:41:42 -04:00
LagoLunatic
9e29fd3c68 More warning cleanup 2024-10-18 11:33:08 -04:00
LagoLunatic
202851599f More warning/error cleanup, mostly includes
Some checks are pending
Build / build (GZLE01) (push) Waiting to run
Build / build (GZLJ01) (push) Waiting to run
Build / build (GZLP01) (push) Waiting to run
Build / website (push) Blocked by required conditions
2024-10-17 23:46:30 -04:00
LagoLunatic
7b1e5d2a0d Link d_ovlp_fade3 for USA and PAL but not JPN 2024-10-17 21:56:31 -04:00
LagoLunatic
34afbd84db clangd: Started fixing warnings and errors, code cleanup 2024-10-17 21:35:18 -04:00
LagoLunatic
f1d73f7fc7 clangd: Disable no return statement warning for unlinked TUs 2024-10-17 20:44:42 -04:00
LagoLunatic
f7d2413a42 Customize vscode settings 2024-10-17 20:44:13 -04:00
LagoLunatic
26ca0cd4b5 Update dtk-template, switch from intellisense to clangd 2024-10-17 16:12:07 -04:00
LagoLunatic
c6bd52facd d_a_bk work
Some checks failed
Build / build (GZLE01) (push) Has been cancelled
Build / build (GZLJ01) (push) Has been cancelled
Build / build (GZLP01) (push) Has been cancelled
Build / website (push) Has been cancelled
2024-10-15 13:36:23 -04:00
LagoLunatic
d0990e3271 d_a_bk work, FILI inline cleanup
Some checks failed
Build / build (GZLE01) (push) Has been cancelled
Build / build (GZLJ01) (push) Has been cancelled
Build / build (GZLP01) (push) Has been cancelled
Build / website (push) Has been cancelled
2024-10-10 16:10:16 -04:00