Commit Graph

161 Commits

Author SHA1 Message Date
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 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
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
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
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
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
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
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
Max Roncace c428403198
d_a_e_sh matching (#2772) 2025-11-05 19:16:06 -08:00
Carco_21 54f989f16e
d_a_obj_hata & d_a_obj_hb matching (#2752)
* hata matching

* hb initial work

* obj_hb matching

* fixed error

* pr cleanup
2025-10-28 04:25:15 +02:00
Howard Luck 21bff2ba25
d_a_obj_ss_drink equivalent (#2708)
* d_a_obj_ss_drink equivalent

* SomeFunc -> ProcessFunc

* fixes for taka

* rm FLT_MIN

* G_CM3D_F_INF
2025-09-27 22:03:27 -07:00
LagoLunatic 54d8839d91
Remove unnecessary externs (#2705) 2025-09-27 15:30:54 -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 5d46f1fc22
d_a_e_ai done (#2617)
* d_a_e_ai done

* pr
2025-08-30 10:31:22 +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
Max Roncace ddf4fc0677
Misc framework fixes (#2578) 2025-08-10 23:22:28 -07:00
hatal175 b83ff69589
Improve various partially matched TUs (#2526) 2025-07-11 01:11:21 -07:00
Max Roncace 25d13c76e4
d_bg_w_kcol work (#2490) 2025-06-19 23:40:53 -07:00
Howard Luck 5ec7e42c2d
d_a_npc_kn work (#2274)
* checkpoint

* checkpoint

* checkpoint

* checkpoint

* checkpoint

* fixups

* check

* fixes 2

* fixes 3

* fixes 4

* fixes 5

---------

Co-authored-by: pheenoh <pheenoh@macmini.local>
Co-authored-by: pheenoh <pheenoh@macmini.lan>
2025-06-08 21:01:18 +03:00
YunataSavior 9ffb52027a
Debug and various d_ev_camera fixes (#2448) 2025-05-19 18:40:57 +03:00
Niklas Bauer 2e10e625d3
d_a_e_tk_ball Matching (#2402)
* d_a_e_tk_ball matching

* d_a_e_tk_ball cleanup

* d_a_e_tk_ball comments
2025-04-20 18:05:58 -07:00
TakaRikka 54dd764096
GCN pal / jpn support, some debug work (#2375)
* d_save debug cleanup / d_s_menu debug

* gameinfo / kankyo struct debug fixes

* pal building ok

* jp building ok

* some tests with jp

* some more pal/jp tests
2025-04-06 21:08:25 +03:00
Caroline Madsen e55c504f28
d_camera work (#2369)
* bumpCheck matching

* checkGroundInfo matching

* chaseCamera matching

* lockonCamera attempted

* talktoCamera matching

* subjectCamera, magneCamera matching

* colosseumCamera close, plus various fixes

* towerCamera attempted

* hookshotCamera matching
2025-04-01 19:05:30 -07:00
TakaRikka a4cdad86f4
b_gnd equivalent (#2340)
* b_gnd equivalent

* fix dEvt_info_c inlines

* fix some more inlines
2025-03-23 21:55:28 +02:00
LagoLunatic 4dc0cd9d09
Debug version now builds OK and all_source compiles (#2343)
* Fix missing arg to JUT_ASSERT

* Fix some MWCC version diff errors

* Compile m_Do_ext, d_demo, actor_mng

* Add VSCode task to quickly switch between versions

* Unlink magLift for debug

* Update the hash of the debug dol

The old cbea5fa... hash here was for the dol generated by the alf2dol.py script, which produces incorrect alignment.

The dol with the new hash can be obtained by using `dtk elf2dol` to convert the debug .alf file to a dol.

The DOL now builds OK.

* Fix all debug REL dtor splits

All RELs now also build OK, meaning `ninja build/ShieldD/ok` now succeeds.

* Add genMessage declarations to all HIO subclasses

* Fixing more compilation errors

* m_Do_mtx 100% on debug

Cannot be linked due to weak function name mangling?

* Improve various matches

* Fix all remaining compilation errors

* Fix new compilation errors from main

* Fix retail regression

* Link f_pc_profile_lst
2025-03-22 18:00:51 -07:00
TakaRikka 19e18654c9
tag_allmato almost, swhit0 treesh swball done, misc cleanup (#2312)
* d_a_tag_allmato almost done

* d_a_swhit0 done

* some SSystem cleanup

* treesh done

* swball done, some other rel cleanup
2025-03-01 14:48:49 +02:00
YunataSavior 9c3c07575a
d_a_e_ym (a.k.a. Twilight bugs) 99% equivalent (daE_YM_c::checkBeforeBg and daE_YM_c::create have regalloc issues) (#2311)
* checkWallCrash and checkWolfBark done for d_a_e_ym

* d_a_e_ym at 36 percent

* 46% completion for d_a_e_ym

* d_a_e_ym at 65% completion

* d_a_e_ym 83% complete

* d_a_e_ym 90% complete

* d_a_e_ym 99% decompiled. All done except for 2 functions with regalloc issues. Cleanup of mSound funcs in d_a_e_ym.

* Update d_a_e_ym based on Taka's feedback
2025-02-28 23:05:49 -08:00
TakaRikka bbc7944e54
d_a_boomerang / d_a_grass mostly done, d_a_spinner done (#2304)
* d_a_boomerang mostly done

* d_a_grass mostly done

* d_a_spinner done
2025-02-19 18:43:26 -05:00
TakaRikka 6e94efaefb
d_a_obj_carry mostly done (#2301)
* d_a_obj_carry mostly done

* cleanup some acch inlines
2025-02-13 10:37:46 -07:00
TakaRikka 2453c0e333
copy dolsdk2004 to tp / b_bh + e_mb done (#2299)
* move dolsdk2004 over

* cleanup some temp work

* finish and cleanup gf

* b_bh done

* d_a_e_mb done
2025-02-10 21:20:42 +02:00
LagoLunatic bf4053fefa
Fix spurious differences when using `ninja diff` (#2294)
* Fix spurious differences when using ninja diff

* Fix some clangd errors/warnings
2025-01-26 22:01:05 -08:00
YunataSavior 5644936254
d_a_obj_Turara equivalent (#2289)
* Initial d_a_obj_Turara work

* More d_a_obj_Turara work

* d_a_obj_Turara equivalent except for weak func order of dEvLib_callback_c dtor

* Updates to d_a_obj_Turara after feedback from Taka

* b_dre equivalent (#2290)

* Update d_a_obj_Turara to remove unnecessary comment based on hatal\'s request

---------

Co-authored-by: TakaRikka <38417346+TakaRikka@users.noreply.github.com>
2025-01-23 12:42:27 -08:00
YunataSavior 7137f49bfc
d_a_obj_octhashi equivalent except for weak func ordering of cCcD_GStts dtor (#2287)
* Initial d_a_obj_octhashi work

* More d_a_obj_octhashi work

* d_a_obj_octhashi has 100% completion, but rodata doesn't match

* d_a_obj_octhashi equivalent. Would fully match except for cCcD_GStts dtor

* d_a_obj_octhashi update after feedback from Taka and hatal
2025-01-19 13:45:55 +02:00
LagoLunatic 2189777abf
Fix various issues in TUs marked `Equivalent` (#2286) 2025-01-14 22:47:29 -08:00
TakaRikka 36daa25884
d_a_horse mostly done (#2284)
* checkpoint

* d_a_horse mostly done

* some horse doc
2025-01-09 15:45:46 +02:00
Huitzi 960b08e88c
d_a_obj_waterPillar + d_a_obj_syRock Equivalent (weak ordering) (#2281)
* d_a_obj_waterPillar + d_a_obj_syRock Equivalent (weak ordering)
* Added fake struct padding
* Added fake Chk inlines to dBgS_Acch
* Added AT_TYPE_100 to cCcD_ObjAtType

* Addressed fakematch
* Deleted fake Chk inlines from dBgS_Acch
* Removed duplicated, but commented, static check for struct size
* Renamed two d_a_obj_waterPillar fields according to comments

* Removed explicit inline keywords & swapped use of PSMTX for debug-friendly MTX
2025-01-03 14:50:14 -08:00
hatal175 d874f05f44
d_a_obj_wsStick, d_a_obj_onsenTaru OK (#2268)
* d_a_obj_wsStick, d_a_obj_onsenTaru OK

* d_a_obj_pdtile OK

* d_a_obj_stone equivalent

* d_a_npc_lf OK

* Z2SoundMgr OK

* Remove fixed nonmatching comment

* d_a_obj_kantera OK

* Remove unneeded header

* daMyna_c::deleteItem matching

* d_a_obj_crvsteel OK
2024-12-24 02:36:01 -08:00
TakaRikka ff5f31b844
kankyo_rain / obj_life_container mostly done, obj_glowsphere done (#2266)
* obj_life_container mostly done

* obj_glowSphere done

* kankyo_rain mostly done

* some cleanup

* more kankyo_rain cleanup
2024-12-18 20:02:52 +02:00
hatal175 ee992eb80c
daObj_BouMato_c OK (#2264)
* daObj_BouMato_c OK

* daObjGraRock_c Matched except template function order

* daBkyRock_c OK
2024-12-12 12:58:40 -08:00
TakaRikka 24b72a5302
some cleanup of f_pc/f_op files (#2254)
* cleanup f_pc files

* cleanup f_op files

* fix a couple f_op_actor_mng functions

* minor JSystem work
2024-11-29 18:24:26 +02:00
TakaRikka d0e243a22a
d_a_b_zant matched + linked (#2253)
* work on b_zant

* zant work

* more zant work

* all b_zant functions done

* some doc work

* some more doc work

* d_a_b_zant linked

* fix d_a_b_zant_magic issue
2024-11-22 14:32:01 -07:00
TakaRikka 083991a8d0
all d_a_alink functions attempted (#2239)
* more work on alink

* alink wip

* little more work

* setEyeMove

* 14 left

* auto ground hit

* all d_a_alink functions attempted
2024-11-09 05:09:36 -05:00
TakaRikka 499d4dfe74
alink_grab done (#2234)
* work on alink grab

* some grab work

* grab almost done

* finish alink grab

* alink_wolf mostly done

* fix cLib_minMaxLimit

* alink guard mostly done

* extract some embedded assets

* extract grass data. wip, alignment wrong
2024-11-03 06:47:23 -05:00
Caroline Madsen f5e80cf9fd
d_camera work (#2226) 2024-10-26 21:35:25 -07:00
hatal175 606178dc88
Work on daNpc_Hanjo_c (#2225) 2024-10-25 23:44:26 -07:00
Caroline Madsen c44ea2139d
c_m3d mostly done (#2222) 2024-10-22 16:09:12 -07:00