86 Commits

Author SHA1 Message Date
LagoLunatic eaf3917be6 debug_map_diff.py: Return map diff results as a struct 2026-10-06 14:44:48 -04:00
LagoLunatic b5898c7b62 Generated joint enums: Add an entry for the total number of joints 2026-10-02 10:27:25 -04:00
LagoLunatic 87b7c37bc2 debug_map_diff.py: Indicate when missing symbols are unused/stripped 2026-09-30 12:37:49 -04:00
LagoLunatic ff4a46f35d debug_map_diff.py: Reorganize code a bit 2026-09-26 14:24:22 -04:00
LagoLunatic 2fbb91bbe2 Merge pull request #1218 from SuperDude88/main
More Consistent Macro Usage
2026-09-25 19:15:55 -04:00
SuperDude88 94fb9e0e41 Change ALIGN_DECL
MWCC 1.3.2 requires the attribute in a different place than later versions/most modern compilers, so make the macro handle the ordering

C++ structs don't seem to have ordering issues so they use the attribute directly
2026-09-25 16:19:00 -04:00
LagoLunatic f6616c1064 d_a_obj_figure OK for demo, fix wrong enum usage for retail 2026-09-22 14:28:18 -04:00
LagoLunatic 238c70a880 debug_map_diff.py: Don't print maybe-fake symbols 2026-09-17 10:48:04 -04:00
LagoLunatic 5141bb73d5 debug_map_diff.py: Add small delay to prevent build conflicts 2026-09-15 12:46:12 -04:00
LagoLunatic b8d302776d debug_map_diff.py: Slight refactor to keep track of most common issues when using --all 2026-09-05 12:02:22 -04:00
LagoLunatic c6ba5cf517 debug_map_diff.py: Ignore _three/_half localstatics 2026-09-05 11:31:25 -04:00
LagoLunatic 75c1bebcec debug_map_diff.py: Add all object summary 2026-08-14 11:53:49 -04:00
LagoLunatic 1602d5d008 debug_map_diff.py: Add option to diff all objects 2026-08-14 11:50:50 -04:00
LagoLunatic 6b911411f0 Actually fix debug_map_diff.py paths 2026-07-31 19:12:55 -04:00
LagoLunatic fa73747971 Fix paths in debug_map_diff.py 2026-07-31 19:02:36 -04:00
LagoLunatic 0f8be7a620 debug_map_diff.py: Diff alignment 2026-07-14 16:52:49 -04:00
LagoLunatic a498fbb50e Make debug_map_diff.py much more accurate for main.dol TUs
Functions are now marked as "FAKE?" instead of "FAKE" in cases where it's possible that they only seem fake due to the linker map not showing duplicate symbols multiple times (inlines used in multiple TUs).

"UNREFERENCED DUPLICATE" data in the base maps are now also taken into account. Also, limited linkage diffing can be done for main.dol symbols (based on the naming convention of l_ and g_ prefixes).
2026-07-14 16:38:20 -04:00
LagoLunatic 43b5e42feb Extract float formatting to separate function to reduce logic duplication 2026-07-14 11:02:06 -04:00
LagoLunatic 2833539046 Asset extraction: Raise error for wrong-sized symbols 2026-07-14 10:57:34 -04:00
LagoLunatic 2fdc8f35cc Asset extractor: Include headers that define Vec/cXy/GXColor 2026-07-14 10:55:14 -04:00
SuperDude88 99f93ebe98 Add Model Extraction Script
- Support extraction of Vec/cXy/GXColor data
2026-07-13 17:09:42 -04:00
LagoLunatic 5319b0e006 Update dtk-template and tools (#1116) 2026-07-13 14:04:37 -04:00
LagoLunatic bd46bc4866 debug_map_diff.py: Fix handling of localstatics in main.dol TUs 2026-07-13 13:27:40 -04:00
LagoLunatic 3cb9b3bdb4 debug_map_diff.py: Several improvements
Auto-detect if the TU is in main.dol or a REL. Detect this separately for the target and the base, in order to support TUs like d_a_npc_tt which are in main.dol for the debug build, but a REL for release builds. And disable linkage comparison when comparing a REL TU to a main.dol TU as the official main.dol maps do not include linkage information, but the REL maps do.
2026-07-13 13:20:35 -04:00
LagoLunatic 4fdf76cc41 Several improvements to debug_map_diff.py
Support checking linkage diffs, and checking if REL data symbols are missing/misnamed.
2026-07-08 13:58:18 -04:00
LagoLunatic 08c9098dcf Also mark NZ_JNT as an ambiguous name 2026-06-16 15:24:19 -04:00
LagoLunatic 71ef7208ac Add comment to res headers about them being automatically generated 2026-06-16 15:20:00 -04:00
LagoLunatic cc561b1b09 Fix BOW_JNT ambiguity in res_arc.py script 2026-06-16 15:11:23 -04:00
LagoLunatic e1f98604a8 Support Linux 2026-05-29 16:34:54 -04:00
LagoLunatic 79523c8ae5 Mark as executable 2026-05-29 16:34:54 -04:00
LagoLunatic 3f251bb878 Fix type checker errors 2026-05-29 16:34:54 -04:00
LagoLunatic 2398ff4a33 Copy paste res_arc.py directly from TP
Co-authored-by: roeming <brother64youyou@gmail.com>
2026-05-29 16:32:12 -04:00
LagoLunatic 0d6d429ad1 Improve debug_map_diff.py, handle UNUSED symbols 2026-05-28 16:30:56 -04:00
LagoLunatic c3eab3103e debug_map_diff.py: Fix several bugs with main.dol TUs 2026-05-26 21:55:40 -04:00
LagoLunatic fe3b83dcc1 Add debug_map_diff.py to detect missing/wrong inlines 2026-05-22 18:01:30 -04:00
LagoLunatic 638d76a959 Add weak_order_diff.py for help with weak func order issues 2026-05-22 15:42:57 -04:00
LagoLunatic 5b96d21e33 Clean up matDL_dis.py
Apparently doing (u8) vs &0xFF can affect regalloc in sinit functions, at least in TP.
2025-11-24 19:08:53 -05:00
Luke Street 55a6d8f1dc Update dtk-template & use wibo on macOS (#901)
* Update dtk-template & use wibo on macOS

* Update to wibo 1.0.0-beta.5

* Fix implicit deps for pch rules
2025-11-20 12:20:02 -05:00
LagoLunatic 78d9b53a52 Add hacks to fix PCH .data causing fake mismatches with decompctx 2025-09-03 22:20:36 -04:00
LagoLunatic e22f51b444 Update dtk-template 2025-08-22 00:32:11 -04:00
LagoLunatic 4b05f412f0 Add pch to build system 2025-08-21 17:04:54 -04:00
LagoLunatic d3ea38b181 Update dtk-template, add build cache to CI workflow (#854)
* Update dtk-template, add build cache to CI workflow

* Add --merge argument

* Add --commit-time

* Update compilers, objdiff, wibo
2025-08-15 15:54:43 -04:00
LagoLunatic 5f78fe0d29 Update dtk-template 2025-06-23 22:09:57 -04:00
LagoLunatic 5369e5f7fa Update dtk-template 2025-06-01 17:52:17 -04:00
LagoLunatic bd1cace545 Update dtk-template 2025-06-01 17:21:31 -04:00
LagoLunatic a0884623c6 Update dtk-template 2025-05-22 15:33:51 -04:00
LagoLunatic e487860868 Update dtk-template 2025-05-19 15:09:58 -04:00
LagoLunatic 168b10e4ed ninja changes: Fix old Python version compatibility 2025-04-25 13:15:13 -04:00
LagoLunatic 58ab930817 More inlines
Also update dtk-template
2025-04-19 13:55:59 -04:00
LagoLunatic d52641ed3f Add ninja changes command for regression testing 2025-04-15 20:09:44 -04:00