Commit Graph

316 Commits

Author SHA1 Message Date
Roland 2168699559 d_a_npc_rsh1 matching (#927)
* Initial work

* 14% matching in .text
- Add some of the static data
- Match sinit function
- Match HIO constructor
- Match _create
- Match some other trivial functions

* Match CreateHeap

* 20% matching in .text

* 31% matching in .text

* 34% matching in .text

* 38% matching in .text

* 51% matching in .text

* createShopList work

* More createShopList work

* 54% matching in .text: Match createShopList

* 57% matching in .text

* 68% matching in .text

* Variable name updates

* 75% matching in .text

* 81% matching in .text

* Match lookBack

* d_a_npc_rsh1 100% for demo and retail

* Replace magic constants with applicable enums

* Give some member fields trivial names and name some method parameters

* Fix a few renaming errors

* More renaming work

* Rename HIO fields and rest of actor fields

* Replace magic numbers associated with mItemNo
2026-02-11 22:40:15 -05:00
Mike Lester 9cc61c4058 Fix up a shadow-related variable/parameter names (#920)
* Fix up a shadow-related variable/parameter names

* Fix compilation errors in d_a_obj_barrel.cpp
2026-01-13 01:01:35 -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
Lord-McSweeney ca83b5d1ae d_file_error matching (#915)
* d_file_error decompiled

* Use dComIfGs_getPalLanguage

* Resolve review comments

* d_file_error matching for non-debug
2026-01-01 14:14:13 -05:00
LagoLunatic 1c3762cf14 Move daPy methods into d_a_player headers 2025-12-29 13:20:45 -05:00
LagoLunatic 8651f98984 Make getEvent return a pointer instead of a reference, resolve tbox fakematch 2025-12-29 13:05:34 -05:00
LagoLunatic bc8b894e21 Inlines cleanup 2025-12-27 21:32:04 -05:00
123456789758 d0852db127 d_meter - 99% matching (#907)
Co-authored-by: ‎ ‎ ‎ <‎ ‎ ‎>
2025-12-27 16:23:15 -05:00
LagoLunatic 3393a348e1 Remove dCcS::SetMass-related fakematches
No longer necessary with the PCH for some reason.
2025-11-24 18:51:42 -05:00
123456789758 9075155201 d_msg - 99% matching (#899)
Co-authored-by: ‎ ‎ ‎ <‎ ‎ ‎>
2025-11-14 19:51:12 -08:00
LagoLunatic 048d242eef bpw partial cleanup, fix inline usage across several actors 2025-09-18 20:17:27 -04:00
maimai0254 6980cbaa21 d_a_bdk (#888)
* d_a_bdk - 98%

* C-style

* maybe 100%

* Resolve protected access violation

* Set configure.py to matching
2025-09-17 10:56:12 -04:00
LagoLunatic c3fdf89c3a d_a_arrow OK for demo 2025-09-08 17:47:54 -04:00
Maide fc3beb2c6c d_a_kamome (#879) 2025-08-31 19:22:55 -04:00
LagoLunatic fbb4ae9935 d_snap OK for demo 2025-08-29 19:37:12 -04:00
LagoLunatic 594a9b3fd0 boko closer to matching, various documentation, enum/inline/struct fixes 2025-08-26 17:05:59 -04:00
Maide 1b49cb3ce0 d_a_canon (#865) 2025-08-25 18:55:36 -04:00
Jcw87 cd4ae74b8c d_map (#771) 2025-08-22 22:00:46 -04:00
LagoLunatic 8d928199ce Fix weak func order for d_stage 2025-08-22 00:31:41 -04:00
LagoLunatic 4b53476cf2 Fix duplicate dADM_CharTbl class 2025-08-19 17:18:01 -04:00
LagoLunatic 2eaf012e4f Fix some version differences (#852)
* Fix some version differences

* Found real inline name for checkBowMiniGame
2025-08-12 16:30:44 -04:00
Maide 1ab3619dbf d_a_stone (#846) 2025-08-11 17:19:18 -04:00
Maide b24d8574cd d_a_salvage (#841)
* d_a_salvage

* PR
2025-08-08 21:34:37 -04:00
LagoLunatic ea4725a8d5 Demo: Match barrel2 mode_demo_explode0 2025-08-03 23:47:09 -04:00
SuperDude88 4adfd27155 daNpc_Cb1_c Almost OK (#822)
* daNpc_Cb1_c Almost OK

Down to regswaps/minor instruction issues

* Oops

That inline was fake

* Some Cleanup

- Fill in more inlines
- Reorganize daNpc_Cb1_c inlines
- Use inlines more
- Some naming and typing consistency

* Naming, Consistency Tweaks

- TRUE/FALSE macros for all cases of BOOL, use int -> BOOL sometimes
- Rename HIO to be consistent with other NPCs
- Animation enum

* Some HIO Names

* Clarity Tweaks

- NULL in more asserts
- Squared constants
2025-07-29 21:04:42 -04:00
Maide 8ee539cdbc d_a_knob00 (#823)
* d_a_knob00

* PR
2025-07-28 18:44:12 -04:00
Maide b93c7993da d_a_ki (#821)
* d_a_ki

* PR
2025-07-27 17:19:15 -04:00
LagoLunatic 67259edeeb Clean up HIO reg accesses 2025-07-17 21:41:40 -04:00
LagoLunatic 3bb95dd90c d_mesg work 2025-06-26 19:12:22 -04:00
LagoLunatic efc33c5fc4 Various inline cleanup 2025-06-19 19:03:11 -04:00
LagoLunatic 3d0aff6a84 daPy_lk_c::dProcTool and daDemo00_c::execute matched, fix up various inlines and template classes, stb OK 2025-06-17 22:30:17 -04:00
LagoLunatic 92a094ef6d d_file_select matching for JPN and demo 2025-06-14 19:09:05 -04:00
Ammar Askar 5c391aa7ad Fully match d_a_npc_bmsw and mark equivalent (#789)
* Match up d_a_npc_bmsw to 98%

* Remove old nonmatching comments

* Match MailCreateInit by using a static cast

* Match Throw and daNpc_Bmsw_getGameEndMsg

* Match CreateInit using demo for ref

* Fix inline for dComIfG_TimerStart

* Match shiwake_game_action

* Match getNextNo

* Mark Equivalent
2025-06-14 17:14:12 -04:00
SuperDude88 947a9a05b1 d_file_select Matching on US (#795)
* d_file_select Almost Matching

Down to 3 regswaps and probably weak func ordering

* Fix Remaining Nonmatches

Regswaps figured out by @ammaraskar
2025-06-14 17:09:40 -04:00
LagoLunatic e7d0df1e50 Cleanup player struct 2025-06-09 23:29:34 -04:00
LagoLunatic e24cbed367 Demo work (#786)
* Demo work

* Fix PAL

* Fix d_door weak func order and link it

* Fix d_door for demo

* JKernel OK on demo + misc

* tag_attention 100% on demo

* More demo work and fix some retail fakematches
2025-06-04 16:50:49 -04:00
LagoLunatic cdfaa05635 More demo work, cleanup 2025-06-01 16:05:42 -04:00
LagoLunatic 22ba12593a dComIfG_Ccsp_SetMass 2025-05-29 19:40:36 -04:00
Zeclos 3755fbfd39 D_a_npc_photo (#759)
* bit too difficult for me for now, might go back later

* progress

* getmsg

* logic matching data isnt

* data section matches

* mathubcg 100%

* cleanup

* revert this change

* final cleanup and configure.py

* nevermind cleanup

* Equivalent onstead of matching

* removed padding

* cleanup code comments and a bit more

* Fix build

---------

Co-authored-by: LagoLunatic <LagoLunatic@users.noreply.github.com>
2025-05-25 17:01:01 -04:00
LagoLunatic 7cd75e8f7b Demo matches (#767) 2025-05-24 18:54:46 -04:00
LagoLunatic 936a47461d Merge pull request #757 from mattias-blum/d_menu
d_menu work
2025-05-21 18:10:15 -04:00
LagoLunatic d097c85eb0 Cleanup 2025-05-21 18:07:36 -04:00
LagoLunatic 86c96002bc Fix demo version diffs in gameinfo/save/stage/etc 2025-05-21 00:49:35 -04:00
LagoLunatic 99c78680de Fix version defines 2025-05-19 20:17:13 -04:00
Mattias Blum 59d39267ec Merge branch 'zeldaret:main' into d_menu 2025-05-17 22:57:55 -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
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 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