Commit Graph

1447 Commits

Author SHA1 Message Date
mattias-blum 568fe41d61 PR changes made 2025-05-18 10:15:09 -04:00
Mattias Blum 59d39267ec Merge branch 'zeldaret:main' into d_menu 2025-05-17 22:57:55 -04:00
mattias-blum 6c3f33263d more progress 2025-05-17 22:40:49 -04:00
mattias-blum 5f7d4c3745 more progress 2025-05-17 20:30:16 -04:00
mattias-blum a4e5f77721 more progress 2025-05-17 17:22:15 -04:00
mattias-blum 49023df979 more progress 2025-05-17 17:08:14 -04:00
LagoLunatic 417742c59f ifdef out __sync decl 2025-05-17 15:55:40 -04:00
LagoLunatic ccf3d2b654 Add decl for the __sync intrinsic 2025-05-17 15:50:08 -04:00
LagoLunatic 404ba29635 Fix __start decls 2025-05-17 15:35:55 -04:00
LagoLunatic 925fba4f20 Revert "Fix more clangd warnings/errors"
This reverts commit ea73a9c5fe.
2025-05-17 15:12:52 -04:00
LagoLunatic ea73a9c5fe Fix more clangd warnings/errors 2025-05-17 14:29:33 -04:00
LagoLunatic e063db9697 Fix error handler typedefs 2025-05-17 14:16:26 -04:00
LagoLunatic 337303fc79 Standardize mMode/mAction names in C-style actors 2025-05-17 14:01:12 -04:00
LagoLunatic 7ac14b85a1 GXFifo OK 2025-05-16 14:34:46 -04:00
mattias-blum a4947d09f9 more progress 2025-05-15 21:27:27 -04:00
mattias-blum b92b0db6a6 more progress 2025-05-15 18:23:10 -04:00
mattias-blum 0a2e18900f more progress 2025-05-15 17:51:38 -04:00
mattias-blum f72d6b5910 more progress 2025-05-15 11:48:36 -04:00
mattias-blum 9d1cd5c6df more progress 2025-05-15 11:05:44 -04:00
LagoLunatic 4a54a410b1 More player_main match fixes 2025-05-14 16:00:12 -04:00
LagoLunatic 36fec0f7fd Disappear drop type cleanup 2025-05-09 16:34:02 -04:00
Mattias Blum 95f230eb15 d_a_ks 100% (#746)
* initial progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* symbol cleanup

* more progress

* more progress

* d_a_ks 100%

* more symbol cleanup

* likely real-match for `useHeapInit`

* removed `csXyz` type from class member

* changed int to BOOL for `HEAVY_IN`

* documented matching issue

* PR changes
2025-05-09 15:18:16 -04:00
LagoLunatic cbbd4c2dc0 Match more player_main regalloc/stack/etc issues 2025-05-08 23:00:19 -04:00
LagoLunatic 534f5d4e72 player_crawl and player_hammer 100%, misc player cleanup 2025-05-07 23:00:35 -04:00
123456789758 224b83ed8c d_a_player_main - 96% matching (#750)
Co-authored-by: ‎ ‎ ‎ <‎ ‎ ‎>
2025-05-07 19:08:04 -04:00
LagoLunatic 74e03b6ecb Document some more TU names 2025-05-07 17:22:10 -04:00
LagoLunatic f064e064eb d_cam_style: Fix excessive float precision 2025-05-07 01:47:44 -04:00
LagoLunatic f690b92d28 Add camera mWork union; also fix clang union handling
Union members with non-trivial ctors/dtors is undefined behavior and clangd normally throws a fit and refuses to parse the whole union, but it seems to be possible to ifdef the problematic ctors out for non-mwerks compilers and explicitly tell modern compilers to use the defaults instead. Thanks to encounter for this fix.
2025-05-07 01:19:23 -04:00
LagoLunatic 18fb9de306 d_cam_type OK for JPN, add style enum, fix pystts1 enum 2025-05-06 22:58:20 -04:00
Mattias Blum bfeb8af18b Merge branch 'zeldaret:main' into d_menu 2025-05-06 22:33:53 -04:00
LagoLunatic 1480636a5a d_cam_type and d_cam_style OK, enums cleanup 2025-05-06 21:48:03 -04:00
Mattias Blum c71bb1dafb d_camera 45% (#747)
* initial progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* fix outdated member names

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* fixed deprecated member references

* more progress

* more progress

* more progress

* fix deprecated member references

* more progress

* more progress

* more progress

* more progress

* more progress

* check in for review

* remove comment

* initial PR changes

* more PR changes

* more PR changes

* added anonymous struct as class member

* reverted changes to `stage_camera2_data_class`

* added `dCamera_event_data`, `dCamera_monitoring_things` and `dCamera_DMC_system` from debug maps

* more progress

* more progress

* realmatch for `camera_draw`

* PR changes

* fix broken merge

* formatting

* Reverted change to `camSphChkdata` that caused  `sph_chk_callback` match to regress

* Reverted change to `BG` struct that caused ctor and dtor match to regress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* PR changes

* corrected size comment

* fixed broken member references
2025-05-06 21:02:35 -04:00
mattias-blum ea930e97d8 initial progress 2025-05-06 01:35:53 -04:00
Jcw87 137ce36539 mtx from dolsdk2004 (#748) 2025-05-05 20:55:42 -04:00
Jcw87 c033afc1f0 Match some data (#745)
* J3DTransform Data

* d_map Data

* jstudio-object Data

* JASBankMgr Data

* JASTrack Data

* d_particle Data

* d_camera Data
2025-05-03 01:18:21 -04:00
LagoLunatic 0237004eb3 Fix some clang errors/warnings 2025-04-30 16:44:08 -04:00
LagoLunatic 2690304a74 player_main cleanup and a few matches 2025-04-29 15:44:49 -04:00
Jcw87 5e7b59f2fe Improve compiler compatibility (#743)
* fix returns

* use standard C headers

* struct/class mismatch

* explicit this in template

* switch variable scope

* C standard compliance

* & l-value
2025-04-29 12:49:09 -04:00
123456789758 eef20535ac d_a_player_main - 70% Matching. (#742)
Co-authored-by: ‎ ‎ ‎ <‎ ‎ ‎>
2025-04-27 19:32:36 -04:00
LagoLunatic c4eb26b2a1 d_attention cleanup, add mDoCPd inlines 2025-04-27 16:38:29 -04:00
Mm2PL 4d1cb33cd8 d_attention 100% (#701)
* Add helper functions for d_attention

* Copy and adapt code from TP

* Move for better matching layout

* Clean up includes for d_attention.cpp

* Give dAttention_c::nextAttention a return

* Use enums in dAttention_c::getActionBtnB and slight reformat

* Change return types for comparison code to match
I don't love this

* Implement dAttList_c::calcWeight

* Implement dAttention_c::sortList

* Implement dAttDraw_c::draw

* Implement dAttDraw_c::setAnm

* Implement dAttention_c::chaseAttention

* Implement judgement related functions

* Implement dAttention_c::Run and runDrawProc

* Implement dAttention_c::Draw

Actually finish Draw

* Looks like dAttention_c::stockAttention had an unused return value

* Give d_Attention_c::mLockOnState an enum

* Rename field_0x02c to mDrawAttnPos based on TP

* Add comments for fields of d_attention

* Give d_attention's flags an enum (although without names)

* Undo type change for dAttention_c::{chk,set,clr}Flag

Co-Authored-By: LagoLunatic <LagoLunatic@users.noreply.github.com>

* Do not spell the `this` pointer

Co-Authored-By: LagoLunatic <LagoLunatic@users.noreply.github.com>

* Deal with resource enums and inlines

* Move PLAYER_STATUS_FLAG_MAGIC_JUDGEMENT to daPy__PlayerStatus0 enum

* Use inlines and macros

* Add mDoCPd_L_LOCK_BUTTON inline, debug maps claim it exists

Nothing else uses it

* Update TODO comments

* Debug maps claim runXyCheckCB was used but it only makes sense if modified

* Use dComIfGp_getPlayer instead of directly indexing the array

* Locate a few more inlines

* Do not cast to AttentionFlags enum type

* Update configure script

---------

Co-authored-by: LagoLunatic <LagoLunatic@users.noreply.github.com>
2025-04-27 15:12:46 -04:00
LagoLunatic adc8a35063 d_grass OK 2025-04-25 20:44:34 -04:00
LagoLunatic b0874059dd d_s_menu OK on JPN and PAL 2025-04-25 19:32:23 -04:00
LagoLunatic 341f329dde d_a_obj_vgnfd OK, d_a_obj_doguu OK, clean up weak-but-not-inlined funcs in finished actors 2025-04-25 18:44:45 -04:00
Zeclos 0c6c84d675 D_a_obj_doguu (#741)
* createInit for now

* _create almost _draw

* push for now, some functions finished progress on others

* _execute matches

* privatecute matching

* cleanup, almost matched

* data almost matching

* added getStartFrame to mDoExt_baseAnm, everything but data 100% matching

* cleanup and marked as Equivalent in configure.py

* cleanup
2025-04-25 17:12:32 -04:00
LagoLunatic fa7d4d2896 Fix relocation and data value mismatches 2025-04-24 14:53:58 -04:00
LagoLunatic ce8d17ec08 Add an enum for action button icon status 2025-04-20 20:06:40 -04:00
LagoLunatic 7e77fd23e3 Minor d_camera match fixes 2025-04-19 15:19:57 -04:00
LagoLunatic 58ab930817 More inlines
Also update dtk-template
2025-04-19 13:55:59 -04:00
LagoLunatic f74a03109f d_a_ship documentation and inlines, couple more matches for player_ship 2025-04-17 19:06:06 -04:00