Commit Graph

1673 Commits

Author SHA1 Message Date
TakaRikka 353721578d
shieldD revolution dvd/nand mostly done (#2922)
* shieldD revo dvd mostly done

* shieldD revo nand mostly done

* shieldD revo fs mostly done

* shieldD revo ipc mostly done

* shieldD revo sdk pad done
2025-12-08 12:44:29 +02:00
LagoLunatic 251d49c6f1
JASBNKParser OK, Z2Audience OK (#2929) 2025-12-07 21:49:42 -08: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
LagoLunatic cd94afafa0
Match Z2SceneMgr::sceneBgmStart (#2923) 2025-12-06 21:09:16 -08:00
kipcode66 fc31053cb6
Improving compatibility with standard cpp compiler (#2920)
* Improving compatibility with standard cpp compiler

* Add __REGISTER macro for non mwcc compatibility

* Fix for PR comments

* fix missing define for revolution

* Simplifying cSAngle conversion
2025-12-06 21:08:05 -08:00
LagoLunatic 7ac2c38caf
Fix const loop invariant issues (#2921)
* Fix const loop invariant issues by defining explicit operator= for structs

* Fix J2DMatBlock weak func order
2025-12-06 14:19:09 -08:00
Max Roncace 136f6b3f40
d_kankyo debug work (#2918)
* Global: Define DEBUG as 0 if not already defined

* Clean up DEBUG-guarded code

* d_kankyo debug almost matching
2025-12-06 13:39:30 -08: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
kipcode66 9f1a648851
fix TPosition3.h (#2919) 2025-12-05 22:24:34 -08:00
LagoLunatic ae9fa8922a
Work on weak function ordering (#2917)
* Fix functionvalue weak func order

* Add script to help diffing weak function order

* Improve alink weak func order (44 -> 15)

* Improve m_Do_ext weak order (12 -> 7)

* Remove old hack

* Fix d_a_tbox weak func order

* Fix d_a_npc_ks weak func order

* Fix error when trying to diff weak func order for ShieldD due to hidden function alignment gap symbols
2025-12-05 18:46:58 -08:00
Carco_21 e6b1f3a4f2
d_a_e_mk debug work + documentation (#2913)
* initial work

* documentation
2025-12-05 18:37:17 -08:00
LagoLunatic 4e4d89eab6
d_a_mg_rod 100% (#2914) 2025-12-05 11:52:18 -07:00
LagoLunatic 7fe9a68a9d
d_a_horse 100% (#2912)
* Fix missing line numbers for debug

* Fix horse inlines and HIO

* Match daHorse_c::setEffect

* Improve a few debug matches

* Match daHorse_c::checkHorseNoMove (half fake)

* Update configure.py
2025-12-04 16:03:13 -08:00
Niklas Bauer 4d3f25d34e
Resolve all "illegal jump past declaration/initializer" warnings (#2911)
* resolve illegal jump past declaration/initializer

* pr comments
2025-12-04 14:57:33 +02:00
LagoLunatic f97d334732
Debug+retail matches and clean up some fakematches (#2910)
* Debug matches

* Match daAlink_c::procGrassWhistleWait

* Match JASAramStream::channelProc

* More debug matches

* Match JAUStreamStaticAramMgr_::deleteStreamAram and bitset inlines

* Fix some fakematches

* Fix gameinfo player info not being a struct

* Update bug comments

* Fix procids in alink

* d_a_scene_exit OK
2025-12-03 15:09:56 -08:00
Carco_21 5716efc4c8
d_a_e_dn work (#2899)
* d_a_e_dn work

* PR cleanup and more documentation
2025-12-03 14:16:08 -08:00
Niklas Bauer c1861812ef
d_a_npc_kn debug work (#2907)
* d_a_npc_kn debug work

* d_a_npc_kn pr comments
2025-12-03 20:30:59 +02:00
LagoLunatic e39af8edf5
Match 4 more functions (#2909)
* Match daNpcF_Lookat_c::adjustMoveDisAngle

* Match daNpc_ykM_c::reset and daNpc_ykW_c::reset

* Fakematch daNpcThe_c::main gameInfo load

* Update configure.py
2025-12-02 18:18:28 -08:00
Niklas Bauer 9a69fa38c7
d_a_obj_brakeeff debug equivalent (#2906)
* d_a_obj_brakeeff fmt

* d_a_obj_brakeeff debug equivalent
2025-12-02 15:33:29 -08:00
Niklas Bauer d2d45c58ee
d_a_obj_damcps debug equivalent (#2904)
* d_a_obj_damcps initial

* d_a_obj_damcps guard

* d_a_obj_damcps pr comments
2025-12-02 22:44:39 +02:00
Niklas Bauer 2260191fe6
Consistent cull_box struct usage (#2905)
* consistent cullbox usage

* d_a_obj_waterPillar debug work so its not a regression
2025-12-02 20:34:19 +02:00
LagoLunatic ffc86e0412
Fix HIO load issues (#2903)
* Fix HIO load order in daHoZelda_c::searchBodyAngle

* Fix regression in daHoZelda_c::createHeap

Apparently the HIO class being constructed having an explicit ctor breaks the compiler ability to branchlessly optimize the false/true return afterwards. Without an explicit ctor the compiler is able to optimize it successfully, which breaks the match.

* Fix HIO load order in daNpc_ykW_c::setAttnPos

* Remove false version diff

* Update configure.py

* Remove old comment

* Fix alink HIO members being private

* alink: Fix HIO loads in 3 retail functions and almost all debug functions
2025-12-01 18:37:04 -08:00
Sven Elmendorp 737db261e9
Some variable names for hookshot and moved some values (#2900)
* Some variable names for hookshot and moved some values

* Revert using data.inc file
2025-12-01 16:36:09 -08:00
robojumper 6a5397e847
JStudio debug improvements (#2902) 2025-12-01 16:33:32 -08:00
LagoLunatic 1e2d9151a0
d_a_tag_kmsg OK (#2901) 2025-12-01 13:33:12 -08:00
TakaRikka a6e76c0841
project cleanup (#2895)
* some wii OS fixes

* remove old dol2asm comments

* remove dol2asm.h

* remove function address comments

* normalize ATTRIBUTE_ALIGN usage

* DECL_WEAK macro

* fix gcc attribute weak macro

* wrap more mwcc specific things in ifdefs

* fixes

* fix revo sdk version flags

* fixes
2025-11-30 15:23:42 -07:00
LagoLunatic 434415337d
J3DSkinDeform work (#2896)
* Match four inline asm functions with manual regalloc

* J3DSkinDeform::changeFastSkinDL: Clean up var names, slightly improve match

* Syntax

* More var names
2025-11-30 23:39:56 +02:00
Howard Luck 20e9957356
d_a_alink_HIO work (#2852)
* daAlink_c::jointControll OK

* daalink debug work

* checkpoint

* fix casting

* checkpoint

* checkpoint

* checkpoint

* checkpoint

* checkpoint

* checkpoint

* checkpoint

* remaining functions + fixes round 1

* fixes round 2

* fixes round 3

* fixes round 4

* revert getNeckAimAngle for now
2025-11-30 22:26:50 +02:00
TakaRikka 139722c731
shieldD revolution OS mostly done (#2892)
* begin revolution sdk setup

* wii rvl test

* revo OS mostly done for shieldD
2025-11-30 08:59:04 +02:00
LagoLunatic 7abe8d4a40
JASHeapCtrl OK (#2893) 2025-11-29 21:30:50 -08:00
Niklas Bauer 1be301393b
d_a_obj_crvgate debug almost matching (#2880)
* Match d_a_obj_crvgate debug

* d_a_obj_crvgate remove this->
2025-11-29 14:51:45 -08:00
Max Roncace 89ccf4c7ef
d_a_bg debug work + matching for retail (#2890) 2025-11-29 22:11:21 +02:00
Julian Maynes 72c37de758
D_a_e_mm_mt 99% matching (#2881)
* do draw, smbindeffect, isdelete, delete, most of heapinit

* Fix lowercase hex

* fix style

* Add spaces after if

* Do most of drop and carry

* Almost done

* Finish normal

* Get functions to mostly regalloc + a few compiler quirks.

* fix up comments

* Fix all issues and get everything to 100
2025-11-29 00:55:42 -08:00
Max Roncace 3e8442dcbd
Minor linklist.h debug fixes (#2887) 2025-11-28 18:11:57 -08:00
LagoLunatic c974c979ee
d_a_passer_mng OK (#2885) 2025-11-28 11:29:09 -08:00
LagoLunatic ff550da0b2
d_map_path_dmap OK (#2884) 2025-11-28 11:28:27 -08:00
LagoLunatic 4fb3af91b8
Various small matches (#2879)
* Misc debug matches

* Fix JASBasicWaveBank weak func order

* Remove more dol2asm stuff, fix missing includes

* Some data fixes

* Update comments

* d_file_sel_warning is already OK

* Fix Z2 splits

* Fix movebox namespace

* Fix inlining issue in m_Do_ext

* Fix Z2 splits for P and J
2025-11-27 21:34:18 -08:00
Niklas Bauer a089a1d21c
d_a_player checks debug work (#2878)
* Match player checks via BOOL

* PR comment

* resolve conflict
2025-11-27 21:20:22 -08:00
TakaRikka 6f96e66518
various Z2Audio / JAudio debug cleanup (#2876)
* some JAudio work

* audio cleanup checkpoint

* checkpoint more audio cleanup

* fix symbols

* more z2 cleanup

* fix regression

* fix build

* some fixes
2025-11-27 21:19:33 -08:00
Max Roncace 767caeecc3
d_a_npc_ykm debug almost matching (#2877) 2025-11-27 14:28:39 -08:00
Carco_21 f8d6c5fe1b
rafrel debug almost matching (#2866) 2025-11-27 14:24:44 -08:00
Carco_21 4d4444ca18
d_a_b_mgn debug almost equivalent (#2842)
* debug almost equivalent

* PR cleanup
2025-11-27 14:22:27 -08:00
Max Roncace 90133fb1cb
Small d_a_mg_rod fixes (#2874) 2025-11-26 20:01:55 -08:00
Max Roncace 3080360a2a
d_kankyo matching (#2872) 2025-11-26 13:52:12 -08:00
LagoLunatic 5d0da9be7c
Match J3DTransformInfo::operator=, fixing several regalloc issues (#2873) 2025-11-26 14:41:10 -07:00
Niklas Bauer c619b761e6
d_a_obj_carry ALL_GCN matching (#2871)
* d_a_obj_carry matching

* d_a_obj_carry::execute() debug matching
2025-11-26 19:27:50 +02:00
Max Roncace 2bff9b49b5
d_particle equivalent (#2869) 2025-11-25 20:55:01 -08:00
hev7 43e2dadc12
Link b_mgn, tbox equivalent (#2867)
* Link b_mgn

* tbox equivalent
2025-11-25 20:48:34 -08:00
Max Roncace 9f76ba2f69
d_a_npc debug work (#2863)
* Remove d_a_npc3.cpp

This file appears to not actually be real and the asserts in its
functions all reference d_a_npc2.cpp instead.

* d_a_npc debug almost matching
2025-11-25 22:32:01 +02:00
Max Roncace 360bad3995
Clean up some fakematches, mostly around gameInfo loads (#2862) 2025-11-25 22:30:14 +02:00
LagoLunatic 7ca9ef46db
d_a_mg_rod equivalent (#2865) 2025-11-25 22:29:44 +02:00
Max Roncace 9943a52a79
Move cBgS_GrpPassChk and cBgS_PolyPassChk to separate headers (#2861)
This is supported by RTTI ordering which only makes sense if these
classes are in separate headers from the dBgS_* classes.
2025-11-25 18:39:11 +02:00
Carco_21 f5e3e89512
d_a_mg_rod a little closer to matching (#2857)
* closer to matching

* build error fix

* PR cleanup
2025-11-25 18:36:25 +02:00
Carco_21 9e232b61fb
Small matches/improvements (#2844)
* j2dmatblock debug work

* J2DMaterialFactory matching

* J2DPictureEx matching

* tiny work

* fixed regressions

* PR cleanup

* build error fix
2025-11-25 18:34:19 +02:00
LagoLunatic 2f2f37a734
Misc fixes (#2860)
* Misc matches

* Remove more old dol2asm stuff

* Remove dCcS::SetMass-related fakematches

No longer necessary with the PCH for some reason.

* Use attention types enum in more places

* Remove more dol2asm stuff

* Clean up matDL_dis.py
2025-11-25 18:32:34 +02:00
hev7 cd3d634133
Link npc_guard (#2859) 2025-11-24 15:30:01 -08:00
LagoLunatic 97c60c9092
Match 5 d_bg_w_kcol funcs (#2856)
* dBgWKCol::CaptPoly equivalent

* dBgWKCol::CaptPoly OK

* Switch s32->int for the rest of the dBgW functions just in case

This doesn't immediately help any other functions besides CaptPoly, but I suspect it could help prevent issues in the future since it's more likely to be what the original devs did.

* Debug var fix

* Match 3 more kcol funcs

* Remove unused lits

* Update nonmatching comments

* Fix ChkShdwDrawThrough
2025-11-23 22:07:35 -08:00
roeming 178191908c
kcol progress (#2855) 2025-11-23 21:16:42 -08:00
YunataSavior 818bd2f0bf
Some npc_ks dbg work (#2854) 2025-11-23 21:14:20 -08:00
YunataSavior 0cc9ebd724
Link npc_zra (#2853) 2025-11-23 21:10:24 -08:00
hev7 6067c05f14
Link npc_doc (#2851)
* Link npc_doc

* Remove changes causing regression in debug
2025-11-23 21:09:19 -08:00
LagoLunatic 8d53f6dd59
Fix more nonmatchings (#2850)
* Fix GetPolyIndex and GetBgIndex, fixing a couple regallocs

* Match daNpcCd2_c::checkFearSituation and daNpcCd2_c::getAnmP

* Match daAlink_c::jointControll

* Clean up float class checks

* Move float constants to global.h
2025-11-23 15:23:44 -08:00
Trueffel eaf980174f
d_a_npc_guard all functions OK (#2849)
* guard about to match

* weak func order messes linking up

* improve executePath
2025-11-23 21:51:19 +02:00
Max Roncace f2ad303961
Link d_msg_class (all) and d_msg_unit (JP only), minor alink fix (#2846) 2025-11-21 21:45:29 -08:00
LagoLunatic e2fddadf32
Misc matches (#2845)
* Misc debug matches

* Fix d_map weak function order

* Remove old nonmatching comments

* d_menu_dmap and JASAudioThread OK, fix weak func order and rodata alignment

* More misc matches
2025-11-21 15:52:16 -08:00
Max Roncace 31621c3dac
Link d_name for GCN JPN (#2843) 2025-11-21 14:27:21 -08:00
TakaRikka 726d7e22c2
npc_doc almost (#2840)
* npc_doc almost

* pr
2025-11-21 13:57:35 +02:00
maimai0254 b24b9a798c
npc_grm OK (#2841)
* npc_grm OK

* uncomment debug stuff

* fix {
2025-11-21 01:47:47 -08:00
YunataSavior 03f8a804fc
Link e_hp (#2838) 2025-11-20 23:26:45 -08:00
Max Roncace e6a5d5c3dd
Miscellaneous retail+debug fixes, link several new TUs (#2836) 2025-11-20 23:09:21 -08:00
LagoLunatic 91011befd7
Remove fake matches, fix false equivalencies, and other small matches (#2837)
* Debug matches and remove fake matches

* Fix false equivalencies, regallocs, and vtable orders

* Fix PAL splits
2025-11-20 21:17:51 -08:00
roeming 6f7457a870
add debug functionality to d_a_horse, match almost all functions (#2834)
* add debug functinality to d_a_horse, match almost all functions

* fix some wii funcs

* fix wii build
2025-11-20 14:41:52 -08:00
Carco_21 248f57b257
npc_midna linked (#2835) 2025-11-20 11:53:19 -08:00
Carco_21 e7270bf7ab
d_a_kytag13 matching + small various work (#2826)
* kytag13 matching

* pr cleanup
2025-11-20 11:47:11 -08:00
YunataSavior 8815bd5da9
Link npc_shoe (#2833) 2025-11-19 22:49:08 -08:00
LagoLunatic 4cf2c7e37d
Misc fixes (#2830)
* Replace DANPCF_C_HACK with a better fakematch

* d_a_obj_item OK

* Fix ninja diff

* Misc debug/nonmatching fixes

* Fix ninja diff for PAL

* Fix bad PAL split
2025-11-19 14:10:03 -08:00
Max Roncace 8956be538e
d_a_npc_grs matching (#2827) 2025-11-19 13:27:28 -08:00
hev7 4373bba251
d_a_npc_soldierB matching (#2828) 2025-11-19 12:53:12 -08:00
hatal175 678c1a0e70
JSUOutputStream Matching for shield (#2825)
* JSUOutputStream Matching for shield

* Fix nonmatching in JAUSectionHeap
2025-11-19 10:17:26 -08:00
Carco_21 9d325bfb29
d_a_npc_pachi_taro and d_a_npc_pachi_maro matching (#2824)
* solid progress

* almost matching

* pachi_taro matching

* pachi_maro matching
2025-11-19 10:07:35 -08:00
Max Roncace 7f863c069b
d_a_npc_chin matching (#2822) 2025-11-18 21:10:04 -08:00
hev7 1b2fe5e2e3
d_a_npc_grd matching (#2821)
* d_a_npc_grd matching

* Fix regression

* Fix
2025-11-18 18:21:48 -08:00
hatal175 8a39ebfa8b
fvb Matching (#2820)
* fvb Matching

* J2DScreen debug work
2025-11-18 18:13:35 -08:00
hatal175 158899a16d
debug work on d_a_e_fb (#2819) 2025-11-18 01:34:52 -08:00
TakaRikka 638c0b968c
npc_gnd finished, movie_player almost done (#2818)
* movie_player mostly done

* d_a_npc_gnd done

* fix fshop debug match
2025-11-18 01:34:34 -08:00
LagoLunatic bd2def28db
d_a_demo00 OK (#2817)
* Misc small matches

* Add J3DFrameCtrl::EMode_NULL enum

* Improve weak bss fakematch and remove a functionvalue fakematch

* demo00 OK
2025-11-17 15:38:04 -08:00
Carco_21 4ab97e8f26
d_a_npc_tkc matching (#2816)
* initial work

* minor work

* almost done

* evcut work

* matching
2025-11-17 20:04:53 +02:00
TakaRikka 540217c31b
wii building OK / m_Do_graphic debug work (#2815)
* wii building OK + m_Do_graphic debug work

* d_meter_HIO debug cleanup

* wii m_Do_graphic stuff

* tag_attack_item OK, mirror_chain almost

* fix build

* mg_fshop matching
2025-11-17 20:01:03 +02:00
maimai0254 4350a38fe0
d_a_npc_sola OK (#2814)
* d_a_npc_sola OK

* delete NONMATCHING comment

* Fix: Add forgotten joint name
2025-11-16 17:17:43 -08:00
YunataSavior ca41270d36
Link kasi_hana, kasi_kyu. (#2813)
* kasi_mich and ashB equiv
2025-11-16 12:30:21 -08:00
YunataSavior 3fee8977c3
Link clerkb and clerkt (#2811) 2025-11-16 12:27:51 -08:00
YunataSavior d21e22f9ed
npc_kn almost matching + dbg work (#2802)
* npc_kn almost matching + dbg work

* more npc_kn dbg work

* fix npc_kn select action functions

* Z2AudioMgr dbg change for taka
2025-11-15 18:40:47 -08:00
hev7 e7a610c5e2
npc_clerka matching, npc_clerkb and npc_clerkt equivalent (#2810) 2025-11-16 04:22:42 +02:00
hev7 fad2f41e33
d_a_npc_kyury matching (#2808) 2025-11-15 04:04:45 -08:00
hev7 2387021347
d_a_npc_pouya matching (#2806)
* d_a_npc_pouya matching

* mItemPartnerId fix
2025-11-15 04:02:24 -08:00
Trueffel 9ea1b81288
d_a_e_tt OK & linked (#2803)
* class decomped

* two funcs missing

* done

* s32 to int

* improve

* remove old nonmatching comment
2025-11-14 16:40:11 -08:00
Carco_21 0573bc517d
d_a_npc_gro matching (#2805)
* initial work

* matching
2025-11-14 16:25:42 -08:00
roeming 977aee7c94
add debug functionality + close to linking hozelda (#2804) 2025-11-14 16:10:46 -08:00
Carco_21 d74c4dd66f
d_a_npc_shaman matching (#2800)
* almost matching

* Make npc_shaman matching

---------

Co-authored-by: YunataSavior <yunatasavior@gmail.com>
2025-11-14 16:04:18 -08:00