Repository navigation
overlay: match 22 level functions and define level buffers and tables in C - #181
Merged
Merged
Conversation
FUN_L05_00304058, FUN_L00_002d2158, FUN_L10_002e01a8, FUN_L06_002f7d78, FUN_L06_002f9a28 and FUN_L06_002e8678 now build from C and match retail.
FUN_L05_0030c5b0, FUN_L10_002f5f18 and FUN_L10_002e3a90 now build from C and match retail.
Names LegRig.heading (0x6C), the turn target used while the rig is driven.
…e-2vfrft # Conflicts: # src/overlays/l05/gameplay/entities/002d1688.c # src/overlays/l06/gameplay/entities/002b4770.c # src/overlays/l10/gameplay/vendor/002df270.c # src/overlays/shared/gameplay/entities/00297d10.c # src/overlays/shared/gameplay/entities/002cfcb8.c
Each draft replaces a tree draft that differed in more words or did not link; the matching build is unchanged.
…ough it in FUN_L05_00254608
Decompilation progress
22 newly matched functions (41,008 B)
Compared with main (ae03241). C_FUZZY uses main's last measurement. |
mateuszklysz
marked this pull request as draft
October 15, 2026 02:08
…TCHING draft (12 words)
mateuszklysz
marked this pull request as ready for review
October 15, 2026 08:59
…new code Aliases that carried another address in their name now use the known name or the right label; coll_hit in L03 was the hit point, font_print_right_2382a0 is font_print_center. Fields and locals with clear use get names.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before
These 22 level functions were still retail asm: FUN_L00_002cfcb8, FUN_L00_002d2158, FUN_L00_00257218, FUN_L00_00276908, FUN_L03_002c4718, FUN_L04_00295778, FUN_L05_00255208, FUN_L05_00304058, FUN_L05_0030c5b0, FUN_L06_002e8678, FUN_L06_002f7d78, FUN_L06_002f9a28, FUN_L06_00303748, FUN_L07_0030cf90, FUN_L08_002d3878, FUN_L10_002e01a8, FUN_L10_002e3a90, FUN_L10_002e8358, FUN_L10_002f5f18, FUN_L12_002e3098, FUN_L15_002cb4c8 and FUN_L15_002e5958. Many pending functions had weaker NON_MATCHING drafts than the closest candidates found. Many zero-filled buffers and constant tables were only reachable as asm labels.
scripts/data-decls.pycounted 720 labels that disagreed.After
moby,vars,target,start_color), not by register or letter. D_L03_00173F40 is typed as theCollisionHitit is.voidreally return a value; declaring themintmatched FUN_L10_002e8358 and FUN_L00_00276908 and brought eight drafts closer.#elsebody (among them FUN_L00_002b49a8, ported from rac1-decomp, FUN_L07_00311eb8 at 2 words, FUN_L07_00314150 at 3 words and FUN_L12_002e72c0 at 4 words).<name>_luialias declared above the firstsdadeclaration now places the.externafter the functions that read the alias, so those functions keeplui. This is documented in docs/code-cleanup.md.data-decls.pyreports 610, and KNOWN_CONFLICTS is lowered to match.Verification
make elfends withPASS: reconstructed boot ELF matches retailmake overlaysends withPASS(2844 functions, 17438 copies, 4229 level data objects)make checkpassesscripts/test_public_tools.pypasses