Commit Graph

590 Commits

Author SHA1 Message Date
Max Roncace a0a5b0cc38
d_a_tag_* TUs mostly matching for debug (#3054)
* d_a_tag_event debug almost matching

* d_a_tag_msg debug almost matching

* d_a_tag_attention almost matching

* d_a_tag_chkpoint debug almost matching (weak func order)

* d_a_tag_evt debug almost matching (extra weak fns)

* d_a_tag_evtarea debug almost matching (weak func order)

* d_a_tag_evtmsg debug almost matching (weak func order)

* d_a_tag_mist debug almost matching (weak func order)

* d_a_tag_howl debug almost matching (weak func order)

* d_a_tag_lantern debug almost matching (weak func order)

* d_a_tag_push debug almost matching (weak func order)

* d_a_tag_telop debug almost matching (weak func order)

* d_a_tag_CstaSw debug almost matching (weak func order)

* d_a_tag_ajnot debug almost matching (weak func order)

* d_a_tag_attack_item debug almost matching (weak func order)

* d_a_tag_gstart debug almost matching (weak func order)

* d_a_tag_hinit debug almost matching (debug weak func order)

* d_a_tag_hjump debug almost matching (weak func order)

* d_a_tag_hstop debug almost matching (weak func order)

* d_a_tag_lv2prchk debug almost matching (weak func order)

* d_a_tag_magne debug almost matching (weak func order)

* d_a_tag_mhint debug almost matching (weak func order)

* d_a_tag_mstop debug almost matching (weak func order)

* d_a_tag_spring debug almost matching (weak func order)

* d_a_tag_statue_evt debug almost matching (weak func order)

* d_a_tag_arena debug almost matching (weak func order)

* d_a_tag_Lv6Gate debug almost matching (weak func order)

* d_a_tag_Lv7Gate debug almost matching (weak func order)

* d_a_tag_Lv8Gate debug almost matching (.data + weak func order)

* d_a_tag_TWgate debug almost matching (weak func order)

* d_a_tag_lv6CstaSw debug almost matching (weak func order)

* d_a_tag_assistance debug almost matching (weak func order)

* d_a_tag_bottle_item debug almost matching (weak func order)

* d_a_tag_chgrestart debug almost matching (weak func order)

* d_a_tag_csw debug almost matching (weak func order)

* d_a_tag_escape debug almost matching (weak func order)

* d_a_tag_firewall debug almost matching (weak func order)

* d_a_tag_gra debug almost matching (weak func order)

* d_a_tag_guard debug almost matching (weak func order)

* d_a_tag_instruction debug almost matching (weak func order)

* d_a_tag_kago_fall debug almost matching (weak func order)

* d_a_tag_lightball debug almost matching (weak func order)

* d_a_tag_lv5soup debug almost matching (weak func order)

* d_a_tag_mmsg debug almost matching (weak func order)

* d_a_tag_mwait debug almost matching (weak func order)

* d_a_tag_myna2 debug almost matching (weak func order)

* d_a_tag_myna_light debug almost matching (weak func order)

* d_a_tag_pachi debug almost matching (weak func order)

* d_a_tag_poFire debug almost matching (weak func order)

* d_a_tag_qs debug almost matching (small mismatch in search)

* d_a_tag_ret_room debug almost matching (weak func order)

* d_a_tag_river_back debug almost matching (weak func order)

* d_a_tag_rmbit_sw debug almost matching (weak func order)

* d_a_tag_schedule debug almost matching (weak func order)

* d_a_tag_setBall debug almost matching (weak func order)

* d_a_tag_setrestart debug almost matching (weak func order)

* d_a_tag_shop_item debug almost matching (weak func order)

* d_a_tag_smk_emt debug almost matching (weak func order)

* d_a_tag_spinner debug almost matching (weak func order)

* d_a_tag_sspath debug almost matching (weak func order)

* d_a_tag_ss_drink debug almost matching (weak func order)

* d_a_tag_stream debug almost matching (weak func order)

* d_a_tag_theB_hint debug almost matching (weak func order)

* d_a_tag_watchge debug almost matching (weak func order)

* d_a_tag_waterfall debug almost matching (weak func order)

* d_a_tag_allmato debug almost matching (weak func order)

* d_a_tag_camera debug almost matching (extra weak fns)

* d_a_tag_wara_howl debug almost matching (RTTI mismatch?)

* d_a_tag_yami debug almost matching (weak func order)

* Fix Shield regressions related to d_a_tag_* debug work
2026-01-19 18:11:54 -08:00
Niklas Bauer 1817d3123f
d_a_obj_fallobj debug work + dVibration_c alignment (#3048)
* d_a_obj_fallobj debug

* fix dVibration_c alignment

* fix

* pr comments
2026-01-19 17:58:59 -08:00
YunataSavior 52a1e1363a
npc_besu, npc_toby DBG equiv (#3051) 2026-01-18 17:52:48 -08:00
roeming 740387eb4f
match d_a_npc_tk for debug (#3046)
* match d_a_npc_tk for debug

* fix macro usage

* fix whitespace
2026-01-17 15:45:52 +02:00
TakaRikka b1f44ce532
d_a_alink cleanup / debug work (#3045)
* start d_a_alink debug cleanup

* d_a_alink_damage debug

* d_a_alink_guard debug

* d_a_alink_bow debug

* d_a_alink_boom debug

* d_a_alink_copyrod debug

* d_a_alink_hvyboots debug

* d_a_alink_grab debug

* d_a_alink_sumou debug

* d_a_alink_horse debug

* d_a_alink_canoe debug

* d_a_alink_crawl / d_a_alink_hang debug

* d_a_alink_swim debug

* d_a_alink_hook / d_a_alink_iceleaf debug

* d_a_alink_bottle debug

* d_a_alink_whistle / d_a_alink_kandelaar / d_a_alink_ironball debug

* d_a_alink_demo debug

* d_a_alink_effect debug

* d_a_alink_wolf debug

* d_a_alink debug / cleanup

* cleanup button status enums
2026-01-17 15:44:37 +02:00
Max Roncace c0e0bbaaf3
Clean up HIO for TUs using HIOParam/Param_c/HIO_c pattern (#3043) 2026-01-13 14:58:15 -08:00
kipcode66 dd03bf861f
standard compiler compatibility changes (#3040)
* move math to cmath

* replace stdarg to cstdarg

* change stdint to stdint.h

* minor fixes

* change stdio to cstdio

* change stdlib to stdlib

* renamed ctype to cctype

* fix missing argument for UNSET_FLAG
2026-01-13 00:48:25 +02:00
roeming 6cc5e6fcca
attempt 2 at d_a_cow debug work (#3030)
* transfer cow progress

* fix symbol names

* Fix shield names

* typo

* remove predefined macro
2026-01-12 22:17:09 +02:00
YunataSavior 24c08d322e
e_rd, npc_ks dbg work (#3029)
* Partial e_rd, npc_ks dbg work

* More e_rd matching

* e_rd fixes and dbg ctor matched

* obj_ita dbg equiv

* e_st dbg almost equiv

* Some obj_ladder dbg work

* dbg e_rd PR comments

* Further e_rd dbg clangd fixes
2026-01-11 19:49:05 -08:00
Max Roncace decb0c5437
d_camera debug almost matching (#3032) 2026-01-11 19:20:17 -08:00
roeming 562f4d0d65
first round of constants cleanup (#3021)
* first round of constants cleanup

* move m_PI_D definition

* remove compatibility comment

* add future version of angle subtracting with/without cast

* whitespace change to run builds again
2026-01-10 23:38:04 +02:00
Max Roncace 3679e7abab
Misc debug include/class order improvements + link remaining Z2AudioLib TUs (#3014)
* Improve dolzel.pch ordering

* Improve JSystem include order

* Various class ordering fixes

* Link remaining Z2AudioLib TUs

* Fix some symbols in Shield and weak functions in ShieldD
2026-01-06 04:38:40 -08:00
Max Roncace e15ba03caa
Link d_a_npc and d_a_npc_cd2 (#3019) 2026-01-05 03:58:09 -08:00
Jcw87 22dc7a37db
fix functions not returning values (#3018) 2026-01-05 03:55:35 -08:00
kipcode66 1d2a0d9568
Add guards around std library headers (#3013)
* Last fix for standard compiler error

* adding define guards around headers

* rename cmath.h and climits.h to cmath and climits respectively

* renaming cstdarg.h to cstdarg

* renaming cstdlib.h to cstdlib

* renaming cstring.h to cstring

* renaming cstdio.h to cstdio

* renaming cmath locale ctype

* renaming stdarg string and va_list

* renaming cstddef

* renaming stdio stddef stdlib

* renaming algorithm, functional, iterator, memory, and utility

* renaming bitset, cstdint, limits, and stdint

* renaming new and type_traits

* update quote includes for standard library headers to angle bracket includes
2026-01-05 03:50:45 -08:00
roeming 1400687731
d_a_e_rdy debug work (#3011)
* debug work for d_a_e_rdy

* remove unused fake function

* fix regressions

* rename variable

* Fix version diffs of angle adding
2026-01-04 17:22:04 -08:00
TakaRikka ce41820bf0
d_a_door_spiral mostly done (#3007) 2025-12-27 13:46:46 -07:00
YunataSavior 6e3b22adee
Debug d_a_e_ym (#3003) 2025-12-26 16:23:14 -08:00
roeming 4ebf9fac9f
match most of d_a_e_wb debug (#3001)
* match most of d_a_e_wb debug

* Move over to using new `UNUSED` macro
2025-12-26 14:56:46 -08:00
Niklas Bauer 67b576ad9a
f_op debug work (#2991)
* f_op debug 1

* f_op debug 2

* f_op debug 3

* f_op debug 4

* f_op debug 5

* f_op_debug fix build

* f_op linking

* remove goto in fopac_create

* fix regressions

* fix regressions

* pr comments
2025-12-26 13:17:51 -08:00
LagoLunatic 229527daf7
Resolve all gameInfo fakematches (#2995)
* Clean up various inlines/fakematches/comments

* Copy OptRuby inline name from TWW debug

* Resolve all dEvt_control_c related fakematches, return pointer instead of reference

* Fix some more missing inline usages
2025-12-24 16:57:36 -08:00
Max Roncace 8a478c5ebe
d_a_mg_rod debug improvements (#2993) 2025-12-23 16:11:09 -08:00
LagoLunatic 877889c510
Clean up code, remove fakematches, add UNUSED, enable warnings (#2992)
* Remove NDEBUG_DEFINED fakematch, clean up getName temps

* Fix ifdef

* Fix bad JSystem pch ifdef breaking decomp.me

* Remove Acch Chk fakematches

* Private Acch fields

* Fix some clangd errors in headers

* Add UNUSED macro for matching debug parameters

* Enable clangd unused-parameter warning

* Remove extern from initializers

Probably added by dol2asm?

* Fix process profile definitions

* Remove leftover dol2asm address comments

* Remove some unnecessary double casts

* Enable some more clangd warnings

* Fix missing usages of fopAcM_ct

* Fix wrong enum usage

* Fix more fakematches
2025-12-23 15:53:10 -08:00
TakaRikka c9d0c58ffe
MSL_C header cleanup (#2988)
* msl_c header cleanup

* math header cleanup

* fix rest of shieldD configs

* cleanup cflag configs a bit

* fix shield build
2025-12-23 10:20:32 -08:00
Max Roncace 9767e76ba0
GCN data 100% matching (#2987)
* Update GZ2J01 symbols from linked DOL

* GCN data 100% matching

* Run dtk apply
2025-12-22 15:41:19 -08:00
kipcode66 47ac1d4a4c
4th round of standard compiler fixes (#2984)
* 4th round of standard compiler fixes

* use of fpcM_ERROR_PROCESS_ID_e in gWolfBustersID
2025-12-22 02:20:08 -08:00
LagoLunatic b4f931f75f
Miscellaneous data fixes (#2983)
* Replace bss lbl_ with init$0000

* Rename l_HIOInit to hio_set

The name is excluded from TP's weird maps, but hio_set is the name they used in TWW's maps.

* Fix a couple more init$ names

* Fix nbomb missing some bss

* Fix camera localstatics having wrong name

* Rename l_initHIO to hio_set

* A couple manual fixes

* Rename hioInit to hio_set

* Couple more manual fixes

* Fix d_a_npc_cd2 data and function order

* More data fixes

* Fix inconsistent hex vs decimal
2025-12-21 16:43:06 -08:00
LagoLunatic 16a2980f5a
Update to objdiff 3.5.0 (#2980)
* Update to objdiff 3.5.0

* Fix symbols being in .data instead of .rodata for Wii/Shield
2025-12-21 10:46:14 -08:00
LagoLunatic 48f1d47690
Work on weak order (#2979)
* JAUSectionHeap OK

* Slightly improve d_camera weak func order (12 -> 10)

* Minor d_a_alink fixes

* weak_order_diff.py: Change to take source file as cli argument instead of .o file

For cli autocompletion to work.

* Reorganize J3D structs (no change in weak order)
2025-12-21 14:13:21 +02:00
LagoLunatic f6e2cbca9d
Match d_a_obj_ice_s rideCallBack (#2977)
* Match d_a_obj_ice_s rideCallBack

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

* Fix debug regression

---------

Co-authored-by: Cuyler36 <Cuyler36@users.noreply.github.com>
2025-12-20 18:53:41 -08:00
Luzagar 762159a990
d_a_npc_ks documentation (#2970)
* npc_ks work

* more work

* fix debug

* more documentation
2025-12-20 18:10:44 -08:00
LagoLunatic 0395053737
Match dNpcLib_lookat_c::action and daBaseNpc_lookat_c::calc (#2973)
* Match dNpcLib_lookat_c::action and daBaseNpc_lookat_c::calc

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

* Improve d_a_npc weak func order

---------

Co-authored-by: Cuyler36 <Cuyler36@users.noreply.github.com>
2025-12-19 22:59:16 -08:00
LagoLunatic 21ce84ae43
d_a_npc_kn OK (#2966)
* d_a_npc_kn OK

* Remove nonmatching comment
2025-12-18 13:37:50 -08:00
Niklas Bauer c0bdb153b5
random debug objects (#2961) 2025-12-17 11:26:51 +02:00
LagoLunatic 6a02f5b387
d_a_npc_wrestler 100% (#2962)
* Match sumouPunchMiss, improve sumouPunchChaseShock

Removing these consts also matches several functions on debug.

* Match sumouSideStep and sumouPunchChaseShock
2025-12-16 22:45:46 +02:00
LagoLunatic 497aa20aa9
d_a_movie_player OK (#2958)
* Match THPAudioDecode

* Match daMP_MixAudio

* Fix weak func order

* Fix global.h
2025-12-16 16:52:28 +02:00
LagoLunatic d4859f8595
d_a_alink 100% (#2957)
* Match daAlink_c::checkHorseGetOff

* Match daAlink_c::procCanoeRowInit
2025-12-15 17:09:39 -08:00
Luzagar 618a3783f8
d_a_e_b +d_a_e_bi_leaf documentation (#2952)
* some e_bi documentation

* fix match issue

* fix error

* e_bi_leaf documentation
2025-12-15 17:04:20 -08:00
Carco_21 86bf768665
d_a_obj_bemos debug work (#2947)
* debug work

* PR cleanup
2025-12-15 17:02:29 -08:00
LagoLunatic 1b8ea3206d
J3D debug work (#2949)
* J3D debug work

* Clean up JSystem GXColor ctors, remove a couple fakematches

* Update symbols.txt

* Fix res include syntax

* Remove fakematch that isn't necessary anymore

* Fix some Shield regressions
2025-12-12 21:04:03 -08:00
roeming 7e514502d2
d_a_obj_movebox debug work (#2948)
* match lots of debug for d_a_obj_movebox

* the rest of the debug work
2025-12-12 21:01:48 -08:00
Jcw87 ae4ad9f477
fix functions not returning values (#2942)
* fix functions not returning values

* implement functions that should return values
2025-12-11 15:31:44 -08:00
hatal175 2c6986f1cc
Work on d_a_obj_ice_s debug (#2941) 2025-12-10 15:06:57 -08:00
LagoLunatic 2447d5a02a
d_a_npc_cdn3 OK (#2935) 2025-12-09 22:41:11 +02:00
Carco_21 60645e1423
d_a_e_gb debug + documentation (#2916)
* cleanup and documentation

* PR cleanup
2025-12-08 20:33:55 -08:00
Carco_21 bff5982293
almost matching (#2933) 2025-12-08 22:12:20 +02:00
Carco_21 c74ce87f5a
decent work (#2931) 2025-12-08 22:10:37 +02:00
roeming 07a4e6b052
match debug for D_menu_fmap2_d (#2925)
* menu_fmap2d debug progress

* match debug for d_menu_fmap2D

* fix broken function

* fix weird shield mismatch

* fix other shield mismatch

* fix suggestions

* fix func for wii version

* match func for all versions

* remove cast from saveBitLabels
2025-12-07 17:09:47 -08:00
LagoLunatic 40a8b9ed54
d_a_npc_blue_ns OK (#2924)
* Match daNpcBlueNS_c::_Execute

* Cleanup loop

* d_a_npc_blue_ns OK
2025-12-07 12:26:55 -07:00
Max Roncace a30e617e5a
Various debug conditional compilation cleanup (#2915)
* Global: Define DEBUG as 0 if not already defined

* Clean up DEBUG-guarded code
2025-12-06 13:34:47 -08:00