Commit Graph

293 Commits

Author SHA1 Message Date
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
Jcw87 f156a2a413
JAHostIO, JAWExtSystem debug (#2985) 2025-12-22 12:27:31 -08:00
TakaRikka bd0c601a52
m_Do_MemCard/d_file_select wii/debug work (#2976)
* m_Do_MemCard/d_file_select wii/debug work

* fix builds
2025-12-20 18:30:04 -08:00
Jcw87 2c62444df1
m_Do_main debug (#2965) 2025-12-19 21:22:03 +02:00
TakaRikka 8185d87f85
copy homebuttonLib from oot-vc (#2960)
* initial copy of hbm from sdk_2009-12-11

* some more nw4hbm cleanup

* nw4hbm db mostly done

* nw4hbm snd copied from oot-vc

* nw4hbm ut copied

* nw4hbm lyt copied

* nw4hbm copied, mostly matching usa 1.0

* setup nw4hbm debug define

* fix HBMDataInfo struct

* add rvl sdk card lib
2025-12-16 16:55:07 +02:00
Carco_21 87732304d1
d_particle debug work (#2944)
* misc work

* more work

* fixed error

* more work

* PR cleanup

* missed cleanup

* error fix

* wii fix
2025-12-12 20:54:42 -08:00
Max Roncace 8ad2d661a2
Clean up conditional compilation a bit (#2943) 2025-12-11 15:34:16 -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
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
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
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 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
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
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
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
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
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
hev7 2387021347
d_a_npc_pouya matching (#2806)
* d_a_npc_pouya matching

* mItemPartnerId fix
2025-11-15 04:02:24 -08:00
Carco_21 a02f72d8f3
d_a_npc_post matching (#2792)
* initial work

* matching

* changed draw ifdef

* enums added

* enum change
2025-11-10 18:15:17 -08:00
LagoLunatic ba7cdd4fe9
Debug work + some retail regalloc fixes (#2787)
* Debug work + some retail regalloc fixes

* Use AUDIO_INSTANCES in places it's missing, link d_a_e_bee

* Link m_Do_machine

* Fix clang putting other includes before the pchs

* Link some more debug TUs that already match
2025-11-09 11:43:14 -08:00
TakaRikka 73927f50a9
kankyo / m_do_ext debug stuff (#2759)
* kankyo debug work

* finish draw packets
2025-10-28 05:55:46 +02:00
TakaRikka 9155add1f6
d_a_npc_blue_ns mostly done (#2747)
* d_a_npc_blue_ns mostly done

* d_a_obj_poCandle / d_a_obj_poTbox done
2025-10-21 21:33:59 +03:00
TakaRikka 850fae1aa3
m_Do_main / f_ap_game / f_op_actor debug work and misc (#2744)
* m_Do_main / f_ap_game debug stuff

* revolution sdk compatibility

* f_op_actor debug work

* rename fopAcM_SetupActor to fopAcM_ct

* fix build

* fix jp/pal splits
2025-10-19 20:30:49 +03:00
LagoLunatic 6242aa6e84
Misc matches and fixes (#2703)
* Match mDoExt_morf_c::getPlayMode

* Misc cleanup

* Fix actor cull spheres

* Match daPy_py_c::getLastSceneSwordAtUpTime, JUTGamePad::testTrigger

* Fix improper demangling of dBgS_SphChk::SetCallback

* Fix d_camera rangef weak func order

* Match more alink_wolf funcs
2025-09-26 18:50:46 -07:00
TakaRikka 9a2df2162b
d_debug_camera mostly done (#2695)
* d_debug_camera mostly done

* update some alink demo stuff

* some misc debug stuff
2025-09-25 18:20:46 +03:00
Max Roncace fe5e8aff98
More miscellaneous TU improvements (#2665) 2025-09-17 15:01:59 +03:00
TakaRikka e7477b5048
Lv4railwall / lv4sand / lv4slidewall done. fix wii build (#2637)
* lv4railwall / lv4sand / lv4slidewall done and wii build fix

* fix Mtx** parameters

* add some notes about wii compiler version

* Remove dol2asm include

---------

Co-authored-by: hatal175 <hatal175@users.noreply.github.com>
2025-09-09 17:30:32 +03:00
Max Roncace 54f5a36264
d_camera almost matching (equivalent) (#2633) 2025-09-08 14:41:07 +03:00
LagoLunatic 956e84b0e7
Start linking some TUs on debug and PAL (#2612)
* Fix clang union handling (affects all TUs including d_camera.h)

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.

* Link all TUs that already match on debug

In order to link TUs for debug, most functions seem to need to have their alignment set to 16 in symbols.txt. There are a few hundred functions that seem to be the exception and break when their alignment is set to 16, but I don't know the reason for this.

* Remove some fakematches (nosyminline/sym off) for weak func order in retail

* Fix clang not knowing that MSL_C++ is C++

* Link more debug TUs

* Fix missing PAL split

* Fix wrong slashes being used in includes

* RZDE01_00: Fix incorrect capitalization in config.yml

* Add RZDE01_00 to configure task

* Revert configure.py to use MatchingFor

* Fix PAL splits and symbols, link matching PAL TUs
2025-08-27 17:37:31 -07:00
Max Roncace 513816ce5c
Add a precompiled header for RELs (#2597) 2025-08-24 09:52:08 +03:00
Max Roncace 41c72dc6d9
d_a_e_hp almost matching (#2585) 2025-08-15 12:50:49 +03:00
Carco_21 4ade12fd64
d_a_npc_coach work (#2579)
* data and class member work

* inline work

* got to SetCoachBlazing

* work on some calc functions

* all functions worked on

* pr cleanup

* more pr cleanup

* coach header cleanup
2025-08-12 20:54:06 +03:00
Max Roncace ddf4fc0677
Misc framework fixes (#2578) 2025-08-10 23:22:28 -07:00
TakaRikka 8785882261
e_hb equivalent / some pal work (#2577)
* some pal work

* e_hb equivalent

* update config
2025-08-10 10:27:45 -06:00
Max Roncace e0bbad1f3f
Miscellaneous match improvements (#2562) 2025-07-31 02:19:46 -07:00
Max Roncace 5c86d6d26f
Minor d_a_alink fixes (#2534) 2025-07-15 23:00:01 +03:00
hatal175 d4768a864e
Various cleanups and matches (#2530) 2025-07-12 13:57:59 -07:00
Carco_21 b67414ef1a
d_a_demo00 work (#2525)
* Initial work

* Got to ke_control

* draw function

* tiny execute work

* all functions worked on

* PR cleanup

* Took out static keyword for dDemo_setDemoData
2025-07-11 02:16:30 +03:00
TakaRikka 227cf2353a
some more wii tests/improvements (#2512)
* some more wii tests/improvements

* merge Z2AudioCS changes
2025-07-01 01:17:50 +03:00
TakaRikka 79c56b2548
add wii usa rev0 support (#2505)
* wii usa rev0 dol building ok

* wii dol cleanup

* some wii tests

* most rels building
2025-06-27 13:14:58 +03:00
Max Roncace 5bdf8bb50e
m_Do_ext almost matching (#2500) 2025-06-26 18:10:50 +03:00
LagoLunatic 23cba4d117
getDemoIDData matched, fix up various inlines and template classes (#2489)
* Fix debug build

* getDemoIDData matched, fix up various inlines and template classes

* Remove nonmatching comments
2025-06-17 22:11:53 -07:00
Max Roncace 9b50fd55c2
d_a_npc_tk equivalent (#2483) 2025-06-13 16:40:18 +03:00
Max Roncace 12ee8c9fb7
d_a_npc_henna equivalent (#2473) 2025-06-03 23:31:22 +03:00
hatal175 b2d665c911
d_msg_class mostly equivalent (#2403) 2025-04-20 17:46:09 -07:00
TakaRikka f08e883783
alink data cleanup (#2397) 2025-04-16 23:03:00 +03:00
hatal175 3df5c7bb42
Various alignments to debug + matching TUs (#2391) 2025-04-13 11:55:52 -07:00
hatal175 cc3e0856bf
Misc Matches using debug (#2388) 2025-04-11 14:54:08 -07:00
Max Roncace 396a464cc7
d_a_bg_obj almost matching (#2382) 2025-04-08 18:20:21 -07:00
LagoLunatic c0e111b081
Debug JStudio fix + match one retail func (#2378)
* Fix debug build

* Minor fixes

* Match daAlink_c::getDemoLookActor

* Fix JStudio paths in ShieldD splits

* Fix JStudio not compiling on debug

* Fix JStudio not compiling on retail, add fake header
2025-04-06 17:57:52 -07:00