Commit Graph

73 Commits

Author SHA1 Message Date
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
LagoLunatic 4d2dda94e2 Forgot to set +x on matDL_dis too 2025-01-28 19:25:29 -05:00
LagoLunatic bcedcd8731 Set mode +x on executable Python scripts 2025-01-28 19:09:28 -05:00
LagoLunatic d6c3081559 Update dtk-template, dtk, and objdiff 2025-01-28 14:01:04 -05:00
LagoLunatic 12c83739e9 Revert "Add workaround to fix clangd not being able to perform cross-file renames on Windows"
This reverts commit e86613af7e.
2024-11-20 17:50:10 -05:00
LagoLunatic e86613af7e Add workaround to fix clangd not being able to perform cross-file renames on Windows 2024-11-20 16:59:08 -05:00
LagoLunatic ba5b37350c Update dtk-template, add decomp.me preset IDs 2024-11-07 14:47:52 -05:00
LagoLunatic a25031175e matDL build rule: Allow specifying global/local scope 2024-11-02 12:08:43 -04:00
LagoLunatic d264788d79 remove debug prints from matDL build script 2024-11-02 00:12:02 -04:00
LagoLunatic e9f82ff359 Add custom build rule for material display lists with image addresses in them 2024-11-01 19:32:15 -04:00
LagoLunatic dc64d54b5e Update dtk and dtk-template 2024-11-01 15:20:24 -04:00
LagoLunatic faa0a17849 Update dtk & dtk-template
Fixes symlinks and decompctx not working
2024-10-18 11:41:42 -04:00
LagoLunatic 26ca0cd4b5 Update dtk-template, switch from intellisense to clangd 2024-10-17 16:12:07 -04:00
LagoLunatic 2310bc5557 Update dtk-template 2024-10-10 14:30:13 -04:00