Commit Graph

1994 Commits

Author SHA1 Message Date
LagoLunatic f2c603a499 Mention ninja changes in regalloc tutorial 2025-04-29 15:54:37 -04:00
LagoLunatic 533955ebf6 clangd: Enable some more warnings, fix MSL_C++ headers language 2025-04-29 15:53:12 -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 9d8fa425b0 Fix JPN build 2025-04-25 20:49:52 -04:00
LagoLunatic adc8a35063 d_grass OK 2025-04-25 20:44:34 -04:00
LagoLunatic daf1badf85 d_a_syan OK 2025-04-25 19:44:25 -04:00
LagoLunatic b0874059dd d_s_menu OK on JPN and PAL 2025-04-25 19:32:23 -04:00
LagoLunatic 910686fbac d_s_menu OK 2025-04-25 19:01:03 -04:00
LagoLunatic 8849340a01 d_a_kytag07 OK 2025-04-25 18:50:20 -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 168b10e4ed ninja changes: Fix old Python version compatibility 2025-04-25 13:15:13 -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
LagoLunatic 41ee5b8995 Merge pull request #737 from Jcw87/d_mesg
d_mesg
2025-04-17 15:22:19 -04:00
Jcw87 be0f59f361 d_mesg 2025-04-17 12:16:48 -07:00
LagoLunatic 7d0c280adf player_grab 100%, cleanup 2025-04-17 00:53:33 -04:00
LagoLunatic ad22472b1a player misc cleanup and various match fixes 2025-04-16 20:26:40 -04:00
LagoLunatic 3a9eebd7ea player_sword 100%, cleanup 2025-04-16 17:39:21 -04:00
LagoLunatic 38a6e76657 player checkFlg inline fix, player_pushpull cleanup 2025-04-16 16:50:11 -04:00
LagoLunatic be81e109e9 One more player inline 2025-04-16 15:07:00 -04:00
LagoLunatic ce1468c108 player enum and inlines and goto cleanup 2025-04-16 15:02:18 -04:00
LagoLunatic 1f049c0911 Move remaining class definitions to headers 2025-04-16 14:18:08 -04:00
LagoLunatic 36a3a2b660 More inlines, use sizeof for memcard structs 2025-04-16 13:53:30 -04:00
LagoLunatic 2f4c6f89b3 Bunch of inline fixes 2025-04-16 13:23:21 -04:00
LagoLunatic da0ed4b78c Fix dCamera_c::BG struct 2025-04-15 20:34:11 -04:00
LagoLunatic d52641ed3f Add ninja changes command for regression testing 2025-04-15 20:09:44 -04:00
LagoLunatic 207727a1be Update objdiff and dtk 2025-04-15 20:06:29 -04:00
Zeclos 35f479ae33 D_a_obj_iceisland (#740)
* 100% matching

* cleanup

* cleanup, removed old comment
2025-04-15 03:34:55 -04:00
LagoLunatic d7bd87bc01 JPAEmitterManager OK 2025-04-15 01:55:36 -04:00
LagoLunatic 9a49de1502 JPAEmitter OK 2025-04-15 00:51:32 -04:00
LagoLunatic 3f6e74331e JPAMath also OK 2025-04-15 00:22:47 -04:00
LagoLunatic 0d2c28e579 JPAParticle OK, JPAField 2025-04-14 23:22:14 -04:00
123456789758 70d9f5df10 d_a_player_main - 48% Matching. (#739)
Co-authored-by: ‎ ‎ ‎ <‎ ‎ ‎>
2025-04-14 17:17:47 -04:00
LagoLunatic 26015238ef d_stage cleanup 2025-04-13 23:21:01 -04:00
LagoLunatic 4ac105c02d JPN build fix, remove nonmatching comments 2025-04-12 23:27:17 -04:00
LagoLunatic 780d4e680a d_drawlist OK, J2DPicture inline cleanup 2025-04-12 23:18:11 -04:00
SuperDude88 1f1900bf66 f_op_msg_mng Work (#685)
* f_op_msg_mng work

* Fix Some Conflicts

Haven't had much chance to work on actual progress, still looking to do more matching before merge

* Tiny bit of Work

Little bit of cleanup, start on a couple more functions

* More Matches

Also add back some missing nonmatch comments

* Fixes

* JPN ifdefs

* Inline Fix

Also force one match (there's no way that casting is real)

* Reorder Strings

Fix rodata, I think this order is also slightly more accurate to the function (but I'm not really trying to match it right now anyways)
2025-04-12 21:02:24 -04:00
LagoLunatic e1898d3836 functionvalue 100% 2025-04-12 00:28:12 -04:00
Mattias Blum 5f287fcaee d_camera 28% (#732)
* 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
2025-04-11 16:37:42 -04:00
LagoLunatic 6aeaaef643 Added enum for Link's movement direction 2025-04-11 15:02:53 -04:00
LagoLunatic 309158e274 J3DModel inlines cleanup, procBottleSwing_init match, etc 2025-04-10 19:30:51 -04:00
Zeclos 0bb7ff4051 D_a_obj_smplbg (#738)
* small push

* everything is moslty matching

* logic matches, data doesnt

* 100% matching

* cleanup
2025-04-10 16:14:09 -04:00