Commit Graph

34 Commits

Author SHA1 Message Date
LagoLunatic 5e9b40b7ec 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
Max Roncace a2da8d35d2 d_a_e_sh matching (#2772) 2025-11-05 19:16:06 -08:00
TakaRikka b841290afa 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
hatal175 292cfe8fa3 d_a_obj_kznkarm OK (#2678)
* d_a_obj_kznkarm OK

* d_a_title GZ2P01 Matching

* More GZ2P01 Matches

* d_s_name matching for PAL

* d_msg_scrn_light Matching for PAL

* d_menu_fishing Matches on PAL

* d_file_sel_info Matches on PAL

* d_a_npc_cd Matching on PAL

* d_error_msg Matches on PAL

* d_cam_param matches as is on PAL

* Fix PAL JSystem and Z2AudioLib splits/symbols

* Aligning the rest of TUs to compile on all GC versions
2025-09-21 13:26:34 -06:00
LagoLunatic aed8fe8cd3 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
LagoLunatic 561c9258f0 Fix ShieldD REL hash checks (#2611) 2025-08-27 20:52:40 +03:00
LagoLunatic c23f046a13 Fix d_a_ykgr retail regalloc and mostly match on debug (#2608)
* d_a_ykgr OK

* Fix sqrtf for shield

* Fix pch caps
2025-08-27 01:40:48 -07:00
LagoLunatic d8e60fe16c Fix all REL module names for ShieldD (#2607) 2025-08-25 18:46:46 -07:00
LagoLunatic 93f908ebff Add PAL, JPN, and Shield versions to CI, update dtk-template (#2605)
* Add ShieldD to GitHub CI build

* Update dtk-template, add support for CI caching

* Fix PAL and JPN not building on Linux due to case sensitive file paths

* Add PAL and JPN to GitHub CI build

* Fix bad copy paste
2025-08-25 17:45:28 -07:00
hatal175 4ae5fc5f6d d_a_obj_msima OK (#2593) 2025-08-21 04:07:41 -07:00
hatal175 c524d2a2cd d_a_obj_lv4chandelier equivalent (#2590) 2025-08-17 19:06:17 -07:00
Max Roncace 1be4c97a3b d_a_e_hp almost matching (#2585) 2025-08-15 12:50:49 +03:00
hatal175 62d51df2ba d_a_obj_kita OK (#2582)
* d_a_obj_kita OK

* Remote ctor and dtor
2025-08-13 12:53:43 -07:00
hatal175 3f399388b3 d_a_obj_gomikabe OK (#2580)
* d_a_obj_gomikabe OK

* Remove unneeded include
2025-08-11 17:18:42 -07:00
hatal175 6af73124b4 d_a_obj_fallobj OK (#2568)
* d_a_obj_fallobj OK

* J3DMatBlock equivalent
2025-08-05 18:10:43 -07:00
Max Roncace 8faa0fcec6 d_a_e_bg matching (#2567) 2025-08-05 11:37:09 +03:00
Stbn-antier 910382c7b5 d_a_bd Matching (#2560)
* Matching daPoFire

* Adressed comments

* Matching text

* Some cleanup

* Adressed review comments, added CUT_TYPE_NONE in cut type enum
2025-07-30 20:27:05 +03:00
hatal175 40e4cc212f d_a_obj_thdoor,d_a_obj_zra_rock OK (#2557)
* d_a_obj_thdoor,d_a_obj_zra_rock OK

* Remove ;
2025-07-26 12:34:45 -07:00
hatal175 34c8e0fcf6 d_a_obj_twGate Matching (#2555)
* d_a_obj_twGate Matching

* d_a_obj_volcbom OK
2025-07-25 17:44:23 -07:00
hatal175 a8e555bc14 Work on d_a_obj_toby (#2552)
* Work on d_a_obj_toby

* d_a_obj_tatigi matching

* Deleted automatic ctor and dtor
2025-07-24 12:19:48 -07:00
Max Roncace b93841f28e d_a_obj_tobyhouse equivalent (#2546) (#2543)
Co-authored-by: hatal175 <hatal175@users.noreply.github.com>
2025-07-22 15:22:58 +03:00
Max Roncace 80cba91f32 d_a_kago almost matching (#2541) 2025-07-19 18:12:27 +03:00
hatal175 c29a2662b2 d_a_ppolamp OK (#2535)
* d_a_ppolamp OK

* Remove include

* d_a_tag_Lv6Gate OK
2025-07-15 01:28:47 -07:00
LagoLunatic fb33d7cfc4 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
TakaRikka d902b1d014 d_a_bg mostly matching. update version symbols / add platform macros (#2410)
* d_a_bg mostly matching

* update version symbols from new dtk

* add version platform macros

* small fix
2025-04-25 20:53:30 +03:00
LagoLunatic cb8a9815b1 d_stage cleanup (#2392) 2025-04-13 20:54:57 -07:00
hatal175 efc781e892 Various alignments to debug + matching TUs (#2391) 2025-04-13 11:55:52 -07:00
LagoLunatic 4e30ad564a 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
LagoLunatic 7ac9c97e33 Debug build now takes .alf as input instead of .dol (#2360)
* Fix debug build

* Debug build now takes .alf as input instead of .dol

I had to manually remove the following line from symbols.txt for DTK to work:
```
.data = .sbss:0x8074C97C; // type:object size:0x4 scope:local data:byte
```
After that it built OK, and DTK automatically modified all other lines in symbols.txt.

* Fix pragma in header messing up debug optimization level
2025-03-30 15:43:44 -07:00
LagoLunatic 0ff06d2974 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
LagoLunatic 7349c37bfb Fix false pointer relocations in data breaking shiftability (#2296)
* Fix false pointer relocations in data breaking shiftability

* Update matDL_dis.py from tww

* remove debug prints from matDL build script
* matDL build rule: Allow specifying global/local scope

* Use asset extraction for ShieldD

* Set mode `+x` on executable Python scripts

* set `+x` on matDL_dis
2025-01-31 23:58:59 +02:00
LagoLunatic a60b7f3e99 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
TakaRikka 2014eab06f most of JHostIO / m_Do_hostIO done (#2288) 2025-01-19 22:05:53 -07:00
TakaRikka 0894b6ef34 wip debug / pal building, b_gm mostly done (#2285)
* b_gm mostly done

* wip debug / pal building

* fix configure.py

* fix some debug macros / flags
2025-01-16 19:37:39 +02:00