Skip to content

gm/mn: match 4 functions#2303

Merged
ribbanya merged 3 commits intodoldecomp:masterfrom
johnwinston:pr/gm-mn-misc
Mar 16, 2026
Merged

gm/mn: match 4 functions#2303
ribbanya merged 3 commits intodoldecomp:masterfrom
johnwinston:pr/gm-mn-misc

Conversation

@johnwinston
Copy link
Contributor

Summary

  • fn_8018846C
  • mn_80232458
  • mnName_GetPageCount, mnName_GetColumnCount, mnName_802388D4

Verification

  • All functions verified 100% match via objdiff during overnight run
  • ninja builds cleanly

What these functions do

Menu and game-mode utilities. fn_8018846C is a game-state callback in the results/ranking screen flow. mn_80232458 handles logic in the Rules menu screen. The three mnName functions support the Name Entry screen — GetPageCount and GetColumnCount calculate pagination for the 120-slot name list (pages of 24, columns of 6), and 802388D4 is a layout callback for rendering the scrollable name grid.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

@decomp-dev
Copy link

decomp-dev bot commented Mar 15, 2026

Report for GALE01 (19a42a2 - 46b8a41)

📈 Matched code: 58.00% (+0.02%, +620 bytes)

✅ 4 new matches
Unit Item Bytes Before After
main/melee/mn/mnname mnName_GetPageCount +196 0.00% 100.00%
main/melee/mn/mnname mnName_802388D4 +144 0.00% 100.00%
main/melee/gm/gm_1832 fn_8018846C +140 0.00% 100.00%
main/melee/mn/mnruleplus mn_80232458 +140 0.00% 100.00%
📈 2 improvements in unmatched items
Unit Item Bytes Before After
main/melee/mn/mnname mnName_GetColumnCount +185 0.00% 98.72%
main/melee/mn/mnruleplus .data +28 59.85% 67.65%

@johnwinston johnwinston changed the title gm/mn: match 5 functions gm/mn: match 4 functions Mar 15, 2026
John Winston Garth and others added 3 commits March 15, 2026 20:03
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Implement three functions in the name entry menu system:
- mnName_GetPageCount: counts valid names, returns ceil(count/24) — 100% match
- mnName_GetColumnCount: counts valid names, returns ceil(count/6) — 97.9% match
  (1 instruction regalloc diff, same pre-existing issue as IsNameListFull)
- mnName_802388D4: gets JObj at keyboard key index via child traversal — 100% match

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ribbanya ribbanya enabled auto-merge (squash) March 16, 2026 00:06
@ribbanya ribbanya merged commit c9798b2 into doldecomp:master Mar 16, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants